Skip to content

Commit ea5d043

Browse files
committed
test: adapt tests to the new config structure
1 parent 2be9383 commit ea5d043

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/lib/configs/scopes/get-config-file.test.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ const defaultConfig: ConfigType = {
1111
"locale" : "en",
1212
"minecraftWindowHeight": 480,
1313
"minecraftWindowWidth" : 854,
14+
"development" : {
15+
"enableDebugMode": true,
16+
},
17+
"showBeforeInitialization": false,
1418
};
1519

1620
vi.mock("@/lib/configs/scopes/get-default-config.ts", async () => {
@@ -62,7 +66,11 @@ const tests: Array<{
6266
"locale" : "en",
6367
"minecraftWindowHeight": 480,
6468
"minecraftWindowWidth" : 854,
65-
"TUYU" : "is awesome",
69+
"development" : {
70+
"enableDebugMode": true,
71+
},
72+
"showBeforeInitialization": false,
73+
"TUYU" : "is awesome",
6674
},
6775
},
6876
{
@@ -115,6 +123,10 @@ const tests: Array<{
115123
"locale" : "en",
116124
"minecraftWindowHeight": 480,
117125
"minecraftWindowWidth" : 854,
126+
"development" : {
127+
"enableDebugMode": true,
128+
},
129+
"showBeforeInitialization": false,
118130
},
119131
},
120132
{

src/lib/configs/scopes/get-default-config.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ test(testName, async () => {
1616
"locale" : "en",
1717
"minecraftWindowHeight": 480,
1818
"minecraftWindowWidth" : 854,
19+
"development" : {
20+
"enableDebugMode": true,
21+
},
22+
"showBeforeInitialization": false,
1923
};
2024

2125
expect(

0 commit comments

Comments
 (0)