mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-29 09:14:59 +00:00
test: add alert module tests for different welcome_message
configurations (#3867)
In this way, all options for `welcome_message` are tested.
This commit is contained in:
committed by
GitHub
parent
4c0a4689c3
commit
fad8bbaeb1
18
tests/configs/modules/alert/welcome_false.js
Normal file
18
tests/configs/modules/alert/welcome_false.js
Normal file
@@ -0,0 +1,18 @@
|
||||
let config = {
|
||||
address: "0.0.0.0",
|
||||
ipWhitelist: [],
|
||||
modules: [
|
||||
{
|
||||
module: "alert",
|
||||
config: {
|
||||
display_time: 1000000,
|
||||
welcome_message: false
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||
if (typeof module !== "undefined") {
|
||||
module.exports = config;
|
||||
}
|
18
tests/configs/modules/alert/welcome_string.js
Normal file
18
tests/configs/modules/alert/welcome_string.js
Normal file
@@ -0,0 +1,18 @@
|
||||
let config = {
|
||||
address: "0.0.0.0",
|
||||
ipWhitelist: [],
|
||||
modules: [
|
||||
{
|
||||
module: "alert",
|
||||
config: {
|
||||
display_time: 1000000,
|
||||
welcome_message: "Custom welcome message!"
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||
if (typeof module !== "undefined") {
|
||||
module.exports = config;
|
||||
}
|
Reference in New Issue
Block a user