mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
enable eslint jest/expect-expect and jest/no-done-callback (#3272)
follow up to https://github.com/MichMich/MagicMirror/pull/3270
This commit is contained in:
@@ -14,7 +14,7 @@ describe("Weather module", () => {
|
||||
});
|
||||
|
||||
it("should render sunrise", async () => {
|
||||
await weatherHelper.getText(".weather .normal.medium span:nth-child(4)", "7:00 am");
|
||||
await expect(weatherHelper.getText(".weather .normal.medium span:nth-child(4)", "7:00 am")).resolves.toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -24,7 +24,7 @@ describe("Weather module", () => {
|
||||
});
|
||||
|
||||
it("should render sunset", async () => {
|
||||
await weatherHelper.getText(".weather .normal.medium span:nth-child(4)", "3:45 pm");
|
||||
await expect(weatherHelper.getText(".weather .normal.medium span:nth-child(4)", "3:45 pm")).resolves.toBe(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user