This commit is contained in:
1 parent
f2103f6604
commit
958de5ef22
3 files changed
+4
No files matched your search
+2
@@ -90,6 +90,7 @@ class AppCreatorAndConfigContractTest {
|
||||
whitelist.put("noticeEnabled", true);
|
||||
whitelist.put("coinUnlockEnabled", true);
|
||||
whitelist.put("downloadEnabled", true);
|
||||
whitelist.put("loginBackgroundUrl", "");
|
||||
given(appConfigService.appConfig()).willReturn(whitelist);
|
||||
|
||||
String body = configMvc.perform(get("/app/config"))
|
||||
@@ -97,6 +98,7 @@ class AppCreatorAndConfigContractTest {
|
||||
.andExpect(jsonPath("$.code").value(0))
|
||||
.andExpect(jsonPath("$.data.agreementVersion").value("2026-10-01"))
|
||||
.andExpect(jsonPath("$.data.forceUpdate").value(false))
|
||||
.andExpect(jsonPath("$.data.loginBackgroundUrl").value(""))
|
||||
.andReturn().getResponse().getContentAsString(java.nio.charset.StandardCharsets.UTF_8);
|
||||
|
||||
// 没登录也能拿到(匿名)
|
||||
|
||||
Reference in new issue
Block a user