mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 20:22:53 +00:00
deprecated unit tests
This commit is contained in:
parent
78d8bff599
commit
3ccdb64833
17
tests/unit/classes/deprecated_spec.js
Normal file
17
tests/unit/classes/deprecated_spec.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
const chai = require("chai");
|
||||||
|
const expect = chai.expect;
|
||||||
|
const deprecated = require("../../../js/deprecated");
|
||||||
|
|
||||||
|
describe("Deprecated", function() {
|
||||||
|
it("should be an object", function() {
|
||||||
|
expect(deprecated).to.be.an("object");
|
||||||
|
});
|
||||||
|
|
||||||
|
it("should contain configs array with deprecated options as strings", function() {
|
||||||
|
expect(deprecated.configs).to.be.an("array");
|
||||||
|
for (let option of deprecated.configs) {
|
||||||
|
expect(option).to.be.an("string");
|
||||||
|
}
|
||||||
|
expect(deprecated.configs).to.include("kioskmode");
|
||||||
|
});
|
||||||
|
});
|
Loading…
x
Reference in New Issue
Block a user