Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vlasic committed Feb 25, 2022
1 parent d902d00 commit 36cd442
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions domain/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@ func TestEventUnmarshal(t *testing.T) {
require.Equal(t, testCliCommand(t), cc)
}

func TestEventPrint(t *testing.T) {
cc := testCliCommand(t)
buf, err := cc.JSON()

require.NoError(t, err)
require.NotEmpty(t, buf)

buf, err = cc.Pretty()
require.NoError(t, err)
require.NotEmpty(t, buf)
}

func TestCliCommandAdd(t *testing.T) {
cc := &CliCommand{}
cc.Add(Event{})
Expand Down

0 comments on commit 36cd442

Please sign in to comment.