✅ 💯%
This commit is contained in:
parent
da3b524925
commit
f68aebdedb
2 changed files with 21 additions and 1 deletions
|
|
@ -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{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue