mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
use expect where missing
This commit is contained in:
@@ -28,7 +28,9 @@ describe("Position of modules", function () {
|
||||
const className = position.replace("_", ".");
|
||||
it("should show text in " + position, function () {
|
||||
return app.client.$("." + className).then((result) => {
|
||||
return result.getText("." + className) === "Text in " + position;
|
||||
return result.getText("." + className).then((text) => {
|
||||
return expect(text).toContain("Text in " + position);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user