Skip to content

Commit

Permalink
unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Reuven committed Jan 24, 2024
1 parent e736a4d commit 62dd93b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,7 @@ func Test_ColorWithNonTextFormat(t *testing.T) {
require.Equal(t, 100, internal.Run(cmdToArgs("oasdiff changelog ../data/allof/simple.yaml ../data/allof/revision.yaml -f yaml --color always"), io.Discard, &stderr))
require.Equal(t, "Error: --color flag is only relevant with 'text' or 'singleline' formats\n", stderr.String())
}

func Test_Delta(t *testing.T) {
require.Zero(t, internal.Run(cmdToArgs("oasdiff delta ../data/simple1.yaml ../data/simple2.yaml"), io.Discard, io.Discard))
}

0 comments on commit 62dd93b

Please sign in to comment.