test: null args should return error
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
|||||||
func TestParse(t *testing.T) {
|
func TestParse(t *testing.T) {
|
||||||
t.Run("no args", func(t *testing.T) {
|
t.Run("no args", func(t *testing.T) {
|
||||||
error,ctype,cscope,shouldCommit,shouldStage,cmessage := Parse([]string{})
|
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, ctype, "")
|
||||||
assert.Equal(t, cscope, "")
|
assert.Equal(t, cscope, "")
|
||||||
var wantedMessage []string
|
var wantedMessage []string
|
||||||
|
|||||||
Reference in New Issue
Block a user