Merge branch 'develop' into package_updates

This commit is contained in:
Michael Teeuw 2017-05-26 14:42:24 +02:00 committed by GitHub
commit a9c2c2178a
5 changed files with 17 additions and 6 deletions

View File

@ -32,8 +32,8 @@ var Loader = (function() {
});
} else {
// All modules loaded. Load custom.css
// This is done after all the moduels so we can
// overwrite all the defined styls.
// This is done after all the modules so we can
// overwrite all the defined styles.
loadFile("css/custom.css", function() {
// custom.css loaded. Start all modules.

View File

@ -412,6 +412,10 @@ Module.register("currentweather",{
/* ms2Beaufort(ms)
* Converts m2 to beaufort (windspeed).
*
* see:
* http://www.spc.noaa.gov/faq/tornado/beaufort.html
* https://en.wikipedia.org/wiki/Beaufort_scale#Modern_scale
*
* argument ms number - Windspeed in m/s.
*
* return number - Windspeed in beaufort.

View File

@ -335,6 +335,10 @@ Module.register("weatherforecast",{
/* ms2Beaufort(ms)
* Converts m2 to beaufort (windspeed).
*
* see:
* http://www.spc.noaa.gov/faq/tornado/beaufort.html
* https://en.wikipedia.org/wiki/Beaufort_scale#Modern_scale
*
* argument ms number - Windspeed in m/s.
*
* return number - Windspeed in beaufort.

View File

@ -63,6 +63,7 @@
"rrule-alt": "^2.2.5",
"simple-git": "^1.73.0",
"socket.io": "^2.0.1",
"stylelint": "^7.10.1",
"valid-url": "latest",
"walk": "latest"
}

View File

@ -121,10 +121,12 @@ describe("Clock module", function () {
});
it("shows week with correct number of week of year", function() {
const currentWeekNumber = require("current-week-number")();
const weekToShow = "Week " + currentWeekNumber;
return app.client.waitUntilWindowLoaded()
.getText(".clock .week").should.eventually.equal(weekToShow);
it("FIXME: if the day is a sunday this not match");
// const currentWeekNumber = require("current-week-number")();
// const weekToShow = "Week " + currentWeekNumber;
// return app.client.waitUntilWindowLoaded()
// .getText(".clock .week").should.eventually.equal(weekToShow);
});
});