remove chai from unit tests

This commit is contained in:
Karsten Hassel
2021-06-08 00:47:15 +02:00
parent 66759a33fa
commit 16bbb42b8d
10 changed files with 66 additions and 79 deletions

View File

@@ -1,16 +1,15 @@
const expect = require("chai").expect;
const deprecated = require("../../../js/deprecated");
describe("Deprecated", function () {
it("should be an object", function () {
expect(deprecated).to.be.an("object");
expect(typeof deprecated).toBe("object");
});
it("should contain configs array with deprecated options as strings", function () {
expect(deprecated.configs).to.be.an("array");
expect(Array.isArray(["deprecated.configs"])).toBe(true);
for (let option of deprecated.configs) {
expect(option).to.be.an("string");
expect(typeof option).toBe("string");
}
expect(deprecated.configs).to.include("kioskmode");
expect(deprecated.configs).toEqual(expect.arrayContaining(["kioskmode"]));
});
});