Fix clock test, remove now unneeded dependency

This commit is contained in:
rejas 2020-08-02 15:19:36 +02:00
parent 45f09dcc8c
commit a1a4192835
3 changed files with 4 additions and 12 deletions

6
package-lock.json generated
View File

@ -1745,12 +1745,6 @@
"cssom": "0.3.x" "cssom": "0.3.x"
} }
}, },
"current-week-number": {
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/current-week-number/-/current-week-number-1.0.7.tgz",
"integrity": "sha1-VnJ4rrX+WN7LFQuayGT5Pc5O2XI=",
"dev": true
},
"currently-unhandled": { "currently-unhandled": {
"version": "0.4.1", "version": "0.4.1",
"resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz",

View File

@ -45,7 +45,6 @@
"@prantlf/jsonlint": "^10.2.0", "@prantlf/jsonlint": "^10.2.0",
"chai": "^4.2.0", "chai": "^4.2.0",
"chai-as-promised": "^7.1.1", "chai-as-promised": "^7.1.1",
"current-week-number": "^1.0.7",
"danger": "^3.1.3", "danger": "^3.1.3",
"eslint-config-prettier": "^6.11.0", "eslint-config-prettier": "^6.11.0",
"eslint-plugin-jsdoc": "^30.1.0", "eslint-plugin-jsdoc": "^30.1.0",

View File

@ -1,5 +1,6 @@
const helpers = require("../global-setup"); const helpers = require("../global-setup");
const expect = require("chai").expect; const expect = require("chai").expect;
const moment = require("moment");
const describe = global.describe; const describe = global.describe;
const it = global.it; const it = global.it;
@ -95,11 +96,9 @@ describe("Clock module", function () {
}); });
it("should show the week with the correct number of week of year", function () { it("should show the week with the correct number of week of year", function () {
it("FIXME: if the day is a sunday this not match"); const currentWeekNumber = moment().week();
// const currentWeekNumber = require("current-week-number")(); const weekToShow = "Week " + currentWeekNumber;
// const weekToShow = "Week " + currentWeekNumber; return app.client.waitUntilWindowLoaded().getText(".clock .week").should.eventually.equal(weekToShow);
// return app.client.waitUntilWindowLoaded()
// .getText(".clock .week").should.eventually.equal(weekToShow);
}); });
}); });