2018-02-16 22:09:15 +01:00
|
|
|
const deprecated = require("../../../js/deprecated");
|
|
|
|
|
2020-05-11 22:22:32 +02:00
|
|
|
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
|
|
|
|
2020-05-11 22:22:32 +02: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
|
|
|
});
|