Skip to content

Commit

Permalink
fix: occurred typo
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored and dylanhitt committed Sep 20, 2023
1 parent 2b360aa commit 036c940
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/matcher/matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (m XMLMatcher) Match(got interface{}, expected interface{}) MatcherResult {
if err != nil {
return MatcherResult{
Success: false,
Diff: fmt.Sprintf("Error occured: %s", err),
Diff: fmt.Sprintf("Error occurred: %s", err),
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/matcher/matcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func TestXMLMatcher_WithXPATHError(t *testing.T) {
r := m.Match("<book>test</book>", map[string]string{"<!/book": "test"})

assert.False(t, r.Success)
assert.Equal(t, `Error occured: expression must evaluate to a node-set`, r.Diff)
assert.Equal(t, `Error occurred: expression must evaluate to a node-set`, r.Diff)
}

func TestJSONMatcher_Match(t *testing.T) {
Expand Down

0 comments on commit 036c940

Please sign in to comment.