mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-10 00:45:01 -04:00
tests: Add tests for settings.json
parsing
This commit is contained in:
parent
de0a450aec
commit
6c2f31a5cb
3 changed files with 104 additions and 0 deletions
39
src/tests/backend/specs/settings.json
Normal file
39
src/tests/backend/specs/settings.json
Normal file
|
@ -0,0 +1,39 @@
|
|||
// line comment
|
||||
/*
|
||||
* block comment
|
||||
*/
|
||||
{
|
||||
"trailing commas": {
|
||||
"lists": {
|
||||
"multiple lines": [
|
||||
"",
|
||||
]
|
||||
},
|
||||
"objects": {
|
||||
"multiple lines": {
|
||||
"key": "",
|
||||
}
|
||||
}
|
||||
},
|
||||
"environment variable substitution": {
|
||||
"set": {
|
||||
"true": "${SET_VAR_TRUE}",
|
||||
"false": "${SET_VAR_FALSE}",
|
||||
"null": "${SET_VAR_NULL}",
|
||||
"undefined": "${SET_VAR_UNDEFINED}",
|
||||
"number": "${SET_VAR_NUMBER}",
|
||||
"string": "${SET_VAR_STRING}",
|
||||
"empty string": "${SET_VAR_EMPTY_STRING}"
|
||||
},
|
||||
"unset": {
|
||||
"no default": "${UNSET_VAR}",
|
||||
"true": "${UNSET_VAR:true}",
|
||||
"false": "${UNSET_VAR:false}",
|
||||
"null": "${UNSET_VAR:null}",
|
||||
"undefined": "${UNSET_VAR:undefined}",
|
||||
"number": "${UNSET_VAR:123}",
|
||||
"string": "${UNSET_VAR:foo}",
|
||||
"empty string": "${UNSET_VAR:}"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue