Fix some more undefs that popped up out of nowhere

This commit is contained in:
Veeck
2020-05-05 14:54:49 +02:00
parent c8aedc6f29
commit c8a0f1d0de
5 changed files with 9 additions and 9 deletions

View File

@@ -17,7 +17,7 @@ describe("Functions into modules/default/calendar/calendar.js", function() {
});
describe("capFirst", function() {
words = {
const words = {
"rodrigo": "Rodrigo",
"123m": "123m",
"magic mirror": "Magic mirror",
@@ -89,7 +89,7 @@ describe("Functions into modules/default/calendar/calendar.js", function() {
});
describe("shorten", function() {
strings = {
const strings = {
" String with whitespace at the beginning that needs trimming" : { length: 16, return: "String with whit…" },
"long string that needs shortening": { length: 16, return: "long string that…" },
"short string": { length: 16, return: "short string" },

View File

@@ -12,7 +12,7 @@ describe("Functions into modules/default/newsfeed/newsfeed.js", function() {
require("../../../modules/default/newsfeed/newsfeed.js");
describe("capitalizeFirstLetter", function() {
words = {
const words = {
"rodrigo": "Rodrigo",
"123m": "123m",
"magic mirror": "Magic mirror",

View File

@@ -62,7 +62,7 @@ describe("'global.root_path' set in js/app.js", function() {
});
it("should expect the global.version equals package.json file", function() {
versionPackage = JSON.parse(fs.readFileSync("package.json", "utf8")).version;
const versionPackage = JSON.parse(fs.readFileSync("package.json", "utf8")).version;
expect(this.sandbox.global.version).to.equal(versionPackage);
});
});