Config: Update expected flags in config_test.go and client_test.go

This commit is contained in:
Michael Mayer 2022-03-16 17:41:50 +01:00
parent 8787c9dffb
commit d0beab3f09
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ func TestGetConfig(t *testing.T) {
GetConfig(router)
r := PerformRequest(app, "GET", "/api/v1/config")
val := gjson.Get(r.Body.String(), "flags")
assert.Equal(t, "public debug sponsor experimental settings", val.String())
assert.Equal(t, "public debug test sponsor experimental settings", val.String())
assert.Equal(t, http.StatusOK, r.Code)
})
}

View File

@ -33,7 +33,7 @@ func TestConfig_Flags(t *testing.T) {
config.settings.UI.Scrollbar = false
result := config.Flags()
assert.Equal(t, []string{"public", "debug", "sponsor", "experimental", "readonly", "settings", "hide-scrollbar"}, result)
assert.Equal(t, []string{"public", "debug", "test", "sponsor", "experimental", "readonly", "settings", "hide-scrollbar"}, result)
config.options.Experimental = false
config.options.ReadOnly = false