diff options
Diffstat (limited to 'service/static/config_test.go')
-rw-r--r-- | service/static/config_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/service/static/config_test.go b/service/static/config_test.go index d36726c2..e3fa8d16 100644 --- a/service/static/config_test.go +++ b/service/static/config_test.go @@ -36,8 +36,7 @@ func TestConfig_Forbids(t *testing.T) { } func TestConfig_Valid(t *testing.T) { - assert.NoError(t, (&Config{Enable: true, Dir: "./"}).Valid()) - assert.Error(t, (&Config{Enable: true, Dir: "./config.go"}).Valid()) - assert.NoError(t, (&Config{Dir: "./dir/"}).Valid()) - assert.Error(t, (&Config{Enable: true, Dir: "./dir/"}).Valid()) + assert.NoError(t, (&Config{Dir: "./"}).Valid()) + assert.Error(t, (&Config{Dir: "./config.go"}).Valid()) + assert.Error(t, (&Config{Dir: "./dir/"}).Valid()) } |