Revert "WIP CLI"

This reverts commit 02b6ee7146.
This commit is contained in:
Jeroen Bobbeldijk
2017-09-17 10:48:09 +02:00
parent 9b09dfada8
commit 411accf30f
3 changed files with 158 additions and 197 deletions

View File

@@ -20,5 +20,18 @@ staticPath = "../static"
}
// Root
assert.Equal(t, "../static", c)
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)
}