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,4 +1,3 @@
const expect = require("chai").expect;
const path = require("path");
const { JSDOM } = require("jsdom");
@@ -19,14 +18,14 @@ describe("Test function cmpVersions in js/module.js", function () {
});
it("should return -1 when comparing 2.1 to 2.2", function () {
expect(cmp("2.1", "2.2")).to.equal(-1);
expect(cmp("2.1", "2.2")).toBe(-1);
});
it("should be return 0 when comparing 2.2 to 2.2", function () {
expect(cmp("2.2", "2.2")).to.equal(0);
expect(cmp("2.2", "2.2")).toBe(0);
});
it("should be return 1 when comparing 1.1 to 1.0", function () {
expect(cmp("1.1", "1.0")).to.equal(1);
expect(cmp("1.1", "1.0")).toBe(1);
});
});