MagicMirror/tests/unit/classes/deprecated_spec.js

16 lines
502 B
JavaScript
Raw Normal View History

2018-02-16 22:09:15 +01:00
const deprecated = require("../../../js/deprecated");
describe("Deprecated", function () {
it("should be an object", function () {
2021-06-08 00:47:15 +02:00
expect(typeof deprecated).toBe("object");
2018-02-17 09:20:34 +01:00
});
2018-02-16 22:09:15 +01:00
it("should contain configs array with deprecated options as strings", function () {
2021-06-08 00:47:15 +02:00
expect(Array.isArray(["deprecated.configs"])).toBe(true);
2018-02-17 09:20:34 +01:00
for (let option of deprecated.configs) {
2021-06-08 00:47:15 +02:00
expect(typeof option).toBe("string");
2018-02-17 09:20:34 +01:00
}
2021-06-08 00:47:15 +02:00
expect(deprecated.configs).toEqual(expect.arrayContaining(["kioskmode"]));
2018-02-17 09:20:34 +01:00
});
2018-02-16 22:09:15 +01:00
});