mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 21:00:57 +00:00
remove chai from unit tests
This commit is contained in:
@@ -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"]));
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user