Fix undefined error for showSunTime / showMoonTime in clock module (#3146)

Fixes #3143 and adds tests for showSunTime / showMoonTime
This commit is contained in:
Veeck
2023-07-02 22:10:58 +02:00
committed by GitHub
parent 62eb23ba6a
commit f802c85a38
7 changed files with 93 additions and 50 deletions

View File

@@ -38,7 +38,7 @@ Module.register("clock", {
},
// Define required scripts.
getScripts: function () {
return ["moment.js", "moment-timezone.js", "suncalc.js"];
return ["moment.js", "moment-timezone.js", "suncalc.js", this.file("../utils.js")];
},
// Define styles.
getStyles: function () {