mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 12:12:20 +00:00
Modified test compliments anytime this follow configuration:
{ morning: [], afternoon: [], evening: [], anytime: ["Anytime here"] }
This commit is contained in:
parent
1a296a8ca1
commit
97ab88b39a
@ -23,9 +23,9 @@ var config = {
|
|||||||
position: "middle_center",
|
position: "middle_center",
|
||||||
config: {
|
config: {
|
||||||
compliments: {
|
compliments: {
|
||||||
morning: ["Good Morning"],
|
morning: [],
|
||||||
afternoon: ["Good Afternoon"],
|
afternoon: [],
|
||||||
evening: ["Good Evening"],
|
evening: [],
|
||||||
anytime: ["Anytime here"]
|
anytime: ["Anytime here"]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -90,10 +90,10 @@ describe("Compliments module", function () {
|
|||||||
app.stop().then(function() { done(); });
|
app.stop().then(function() { done(); });
|
||||||
});
|
});
|
||||||
|
|
||||||
it("Show anytime or parts of day compliments", function () {
|
it("Show anytime because if configure empty parts of day compliments and set anytime compliments", function () {
|
||||||
return app.client.waitUntilWindowLoaded()
|
return app.client.waitUntilWindowLoaded()
|
||||||
.getText(".compliments").then(function (text) {
|
.getText(".compliments").then(function (text) {
|
||||||
expect(text).to.be.oneOf(["Good Morning", "Good Evening", "Good Afternoon", "Anytime here"]);
|
expect(text).to.be.oneOf(["Anytime here"]);
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user