mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
16 lines
484 B
JavaScript
16 lines
484 B
JavaScript
const deprecated = require("../../../js/deprecated");
|
|
|
|
describe("Deprecated", () => {
|
|
it("should be an object", () => {
|
|
expect(typeof deprecated).toBe("object");
|
|
});
|
|
|
|
it("should contain configs array with deprecated options as strings", () => {
|
|
expect(Array.isArray(["deprecated.configs"])).toBe(true);
|
|
for (let option of deprecated.configs) {
|
|
expect(typeof option).toBe("string");
|
|
}
|
|
expect(deprecated.configs).toEqual(expect.arrayContaining(["kioskmode"]));
|
|
});
|
|
});
|