fix(test): fix config loading test failure
This commit is contained in:
parent
b3574b64fb
commit
71ea41cb07
3 changed files with 9 additions and 1 deletions
|
@ -216,6 +216,8 @@ func TestLoadCfg(t *testing.T) {
|
||||||
Align: "4",
|
Align: "4",
|
||||||
BgColor: "4",
|
BgColor: "4",
|
||||||
},
|
},
|
||||||
|
AllowSetBg: true,
|
||||||
|
AutoTheme: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Db: &DbConfig{
|
Db: &DbConfig{
|
||||||
|
@ -282,6 +284,8 @@ func TestLoadCfg(t *testing.T) {
|
||||||
Align: "4",
|
Align: "4",
|
||||||
BgColor: "4",
|
BgColor: "4",
|
||||||
},
|
},
|
||||||
|
AllowSetBg: true,
|
||||||
|
AutoTheme: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Db: &DbConfig{
|
Db: &DbConfig{
|
||||||
|
@ -348,6 +352,8 @@ func TestLoadCfg(t *testing.T) {
|
||||||
Align: "4",
|
Align: "4",
|
||||||
BgColor: "4",
|
BgColor: "4",
|
||||||
},
|
},
|
||||||
|
AllowSetBg: true,
|
||||||
|
AutoTheme: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Db: &DbConfig{
|
Db: &DbConfig{
|
||||||
|
|
2
src/server/testdata/config_4.yml
vendored
2
src/server/testdata/config_4.yml
vendored
|
@ -47,5 +47,7 @@ site:
|
||||||
position: "4"
|
position: "4"
|
||||||
align: "4"
|
align: "4"
|
||||||
bgColor: "4"
|
bgColor: "4"
|
||||||
|
allowSetBg: true
|
||||||
|
autoTheme: true
|
||||||
db:
|
db:
|
||||||
dbPath: "4"
|
dbPath: "4"
|
BIN
src/server/testdata/test_quickshare.db
vendored
BIN
src/server/testdata/test_quickshare.db
vendored
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue