💯%

This commit is contained in:
Dan Jones 2024-03-07 21:50:51 -06:00
commit f68aebdedb
2 changed files with 21 additions and 1 deletions

View file

@ -55,7 +55,12 @@ func TestOverrideJson(t *testing.T) {
assert.Equal(t, "txt", c.Input.Ext)
}
// @todo test time
func TestTimeParse(t *testing.T) {
Overrides = map[string]string{"input.ext": "now"}
c, err := Load()
assert.ErrorContains(t, err, "incompatible types: TOML value has type time.Time; destination has type string")
assert.Equal(t, "txt", c.Input.Ext)
}
func TestStdoutMissing(t *testing.T) {
var oo Outputs = map[string]Output{}