-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for compliments file refresh and testcases
- Loading branch information
Showing
6 changed files
with
101 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
let config = { | ||
address: "0.0.0.0", | ||
ipWhitelist: [], | ||
modules: [ | ||
{ | ||
module: "compliments", | ||
position: "bottom_bar", | ||
config: { | ||
updateInterval: 3000, | ||
remoteFile: "http://localhost:8080/tests/mocks/compliments_test.json" | ||
} | ||
} | ||
] | ||
}; | ||
|
||
/*************** DO NOT EDIT THE LINE BELOW ***************/ | ||
if (typeof module !== "undefined") { module.exports = config; } |
19 changes: 19 additions & 0 deletions
19
tests/configs/modules/compliments/compliments_file_change.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
let config = { | ||
address: "0.0.0.0", | ||
ipWhitelist: [], | ||
modules: [ | ||
{ | ||
module: "compliments", | ||
position: "bottom_bar", | ||
config: { | ||
updateInterval: 3000, | ||
remoteFileRefreshInterval: 1500, | ||
remoteFile: "http://localhost:8080/tests/mocks/compliments_test.json", | ||
remoteFile2: "http://localhost:8080/tests/mocks/compliments_file.json" | ||
} | ||
} | ||
] | ||
}; | ||
|
||
/*************** DO NOT EDIT THE LINE BELOW ***************/ | ||
if (typeof module !== "undefined") { module.exports = config; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"morning": ["test in morning"], | ||
"afternoon": ["test in afternoon"], | ||
"evening": ["test in evening"] | ||
} |