mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +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",
|
||||
config: {
|
||||
compliments: {
|
||||
morning: ["Good Morning"],
|
||||
afternoon: ["Good Afternoon"],
|
||||
evening: ["Good Evening"],
|
||||
morning: [],
|
||||
afternoon: [],
|
||||
evening: [],
|
||||
anytime: ["Anytime here"]
|
||||
|
||||
}
|
||||
|
@ -90,10 +90,10 @@ describe("Compliments module", function () {
|
||||
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()
|
||||
.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