WIP CLI
This commit is contained in:
@@ -20,18 +20,5 @@ staticPath = "../static"
|
||||
}
|
||||
|
||||
// Root
|
||||
assert.Equal(t, "../static", c.StaticPath)
|
||||
|
||||
}
|
||||
|
||||
func TestValidation(t *testing.T) {
|
||||
const configContent = ``
|
||||
|
||||
var c config.Config
|
||||
if _, err := toml.Decode(configContent, &c); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
err := c.ValidateFields()
|
||||
assert.NotNil(t, err)
|
||||
assert.Equal(t, "../static", c)
|
||||
}
|
||||
|
Reference in New Issue
Block a user