Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
reuvenharrison committed Oct 2, 2024
1 parent 6eee293 commit 964709a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions diff/diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,12 @@ func TestFilterByRegex(t *testing.T) {
require.Nil(t, d.GetSummary().Details[diff.PathsDetail])
}

func TestFilterByInvertedRegex(t *testing.T) {
d, err := diff.Get(&diff.Config{UnmatchPath: "api|subscribe|register"}, l(t, 1), l(t, 2))
require.NoError(t, err)
require.Nil(t, d.GetSummary().Details[diff.PathsDetail])
}

func TestFilterPathsByExtension(t *testing.T) {
d, err := diff.Get(&diff.Config{FilterExtension: "x-extension-test"}, l(t, 1), l(t, 2))
require.NoError(t, err)
Expand Down

0 comments on commit 964709a

Please sign in to comment.