Skip to content

Commit

Permalink
add test for just an evening config in the morning
Browse files Browse the repository at this point in the history
  • Loading branch information
veeck committed Feb 24, 2025
1 parent 4ef9ace commit 1c6cbbc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/electron/modules/compliments_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ describe("Compliments module", () => {
await helpers.startApplication("tests/configs/modules/compliments/compliments_parts_day.js", "01 Oct 2022 20:00:00 GMT");
await expect(doTest(["Hello There", "Good Evening", "Evening test"])).resolves.toBe(true);
});

it("doesnt show evening compliments during the day when the other parts of day are not set", async () => {

Check warning on line 38 in tests/electron/modules/compliments_spec.js

View workflow job for this annotation

GitHub Actions / code-style-check

Test has no assertions
await helpers.startApplication("tests/configs/modules/compliments/compliments_evening.js", "01 Oct 2022 10:00:00 GMT");
});
});

describe("Feature date in compliments module", () => {
Expand Down

0 comments on commit 1c6cbbc

Please # to comment.