2018-02-16 22:09:15 +01:00
|
|
|
const deprecated = require("../../../js/deprecated");
|
|
|
|
|
2022-10-04 10:15:24 +02: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
|
|
|
|
2022-10-04 10:15:24 +02:00
|
|
|
it("should contain configs array with deprecated options as strings", () => {
|
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
|
|
|
});
|