mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
unit test global.version
This commit is contained in:
parent
0f0a71a109
commit
f57ad57e62
@ -61,5 +61,11 @@ describe("'global.root_path' set in js/app.js", function() {
|
|||||||
it("should not modify global.version for testing", function() {
|
it("should not modify global.version for testing", function() {
|
||||||
expect(global.version).to.equal(undefined);
|
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);
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user