Merge pull request #697 from roramirez/global_version

unit test global.version
This commit is contained in:
Michael Teeuw
2017-02-08 19:32:11 +01:00
committed by GitHub

View File

@@ -61,5 +61,11 @@ describe("'global.root_path' set in js/app.js", function() {
it("should not modify global.version for testing", function() {
expect(global.version).to.equal(undefined);
});
it("should expect the global.version equals package.json file", function() {
version_package = JSON.parse(fs.readFileSync("package.json", "utf8")).version;
expect(this.sandbox.global.version).to.equal(version_package);
});
});