Files

16 lines
481 B
JavaScript
Raw Permalink Normal View History

2018-02-16 22:09:15 +01:00
const deprecated = require("../../../js/deprecated");
2023-01-01 18:09:08 +01:00
describe("Deprecated", () => {
it("should be an object", () => {
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
2026-04-01 12:35:16 +02:00
it("should contain clock array with deprecated options as strings", () => {
expect(Array.isArray(["deprecated.clock"])).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
}
2026-04-01 12:35:16 +02:00
expect(deprecated.clock).toEqual(expect.arrayContaining(["secondsColor"]));
2018-02-17 09:20:34 +01:00
});
2018-02-16 22:09:15 +01:00
});