mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 21:00:57 +00:00
use expect where missing
This commit is contained in:
@@ -26,11 +26,11 @@ describe("Check configuration without modules", function () {
|
||||
|
||||
it("Show the message MagicMirror title", async function () {
|
||||
const elem = await app.client.$("#module_1_helloworld .module-content");
|
||||
return elem.getText("#module_1_helloworld .module-content") === "Magic Mirror2";
|
||||
return expect(await elem.getText("#module_1_helloworld .module-content")).toBe("Magic Mirror2");
|
||||
});
|
||||
|
||||
it("Show the text Michael's website", async function () {
|
||||
const elem = await app.client.$("#module_5_helloworld .module-content");
|
||||
return elem.getText("#module_5_helloworld .module-content") === "www.michaelteeuw.nl";
|
||||
return expect(await elem.getText("#module_5_helloworld .module-content")).toBe("www.michaelteeuw.nl");
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user