use expect where missing

This commit is contained in:
Karsten Hassel
2021-06-14 21:07:38 +02:00
parent ee23c5f72c
commit e3a5bbf661
6 changed files with 13 additions and 11 deletions

View File

@@ -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");
});
});