diff options
author | Wolfy-J <[email protected]> | 2018-09-30 18:16:05 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-09-30 18:16:05 +0300 |
commit | 54a105ead09c30a56c8caa6dde21828d50cc3e85 (patch) | |
tree | c97c02096d07041f247a8c37272c0d5f4f97f57f /service/static | |
parent | 291b1464ee63c235dc6c86ac50225d326cd5cc54 (diff) |
new env values
Diffstat (limited to 'service/static')
-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()) } |