test: null args should return error

This commit is contained in:
2024-02-05 14:30:23 +05:30
parent c9bad27e1d
commit 96f507fbe3

View File

@@ -8,7 +8,7 @@ import (
func TestParse(t *testing.T) {
t.Run("no args", func(t *testing.T) {
error,ctype,cscope,shouldCommit,shouldStage,cmessage := Parse([]string{})
assert.Equal(t, error, nil)
assert.NotEqual(t, error, nil)
assert.Equal(t, ctype, "")
assert.Equal(t, cscope, "")
var wantedMessage []string