MagicMirror/tests/unit/classes/deprecated_spec.js

17 lines
497 B
JavaScript
Raw Normal View History

2019-06-04 10:43:06 +02:00
const expect = require("chai").expect;
2018-02-16 22:09:15 +01:00
const deprecated = require("../../../js/deprecated");
describe("Deprecated", function() {
2018-02-17 09:20:34 +01:00
it("should be an object", function() {
expect(deprecated).to.be.an("object");
});
2018-02-16 22:09:15 +01:00
2018-02-17 09:20:34 +01:00
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");
});
2018-02-16 22:09:15 +01:00
});