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

@@ -25,8 +25,8 @@ describe("Newsfeed module", () => {
it("should NOT show the newsfeed description", async () => {
await helpers.waitForElement(".newsfeed");
const element = document.querySelector(".newsfeed .newsfeed-desc");
expect(element).toBe(null);
const elem = document.querySelector(".newsfeed .newsfeed-desc");
expect(elem).toBe(null);
});
});