Config: Update expected flags in config_test.go and client_test.go
This commit is contained in:
parent
8787c9dffb
commit
d0beab3f09
@ -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)
|
||||
})
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user