Remove some tests to see if it still errors

This commit is contained in:
rejas
2021-04-17 12:44:47 +02:00
parent 552e82f44d
commit 0abebc1e32
5 changed files with 0 additions and 221 deletions

View File

@@ -15,57 +15,6 @@ describe("Functions module weatherforecast", function () {
Module.definitions.weatherforecast.config = {};
});
describe("roundValue", function () {
describe("this.config.roundTemp is true", function () {
before(function () {
Module.definitions.weatherforecast.config.roundTemp = true;
});
var values = [
// index 0 value
// index 1 expect
[1, "1"],
[1.0, "1"],
[1.02, "1"],
[10.12, "10"],
[2.0, "2"],
["2.12", "2"],
[10.1, "10"]
];
values.forEach((value) => {
it(`for ${value[0]} should be return ${value[1]}`, function () {
expect(Module.definitions.weatherforecast.roundValue(value[0])).to.equal(value[1]);
});
});
});
describe("this.config.roundTemp is false", function () {
before(function () {
Module.definitions.weatherforecast.config.roundTemp = false;
});
var values = [
// index 0 value
// index 1 expect
[1, "1.0"],
[1.0, "1.0"],
[1.02, "1.0"],
[10.12, "10.1"],
[2.0, "2.0"],
["2.12", "2.1"],
[10.1, "10.1"],
[10.1, "10.1"]
];
values.forEach((value) => {
it(`for ${value[0]} should be return ${value[1]}`, function () {
expect(Module.definitions.weatherforecast.roundValue(value[0])).to.equal(value[1]);
});
});
});
});
describe("forecastIcons", function () {
Log = {
error: function () {}