Modified test compliments anytime this follow configuration:

{
	morning: [],
	afternoon: [],
	evening: [],
	anytime: ["Anytime here"]
    }
This commit is contained in:
Rodrigo Ramírez Norambuena 2017-02-20 01:52:07 -03:00
parent 1a296a8ca1
commit 97ab88b39a
2 changed files with 5 additions and 5 deletions

View File

@ -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"]
}

View File

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