Skip to content

Commit

Permalink
Fix: order of expected/value in error message (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
remnestal authored Feb 4, 2020
1 parent a9ce177 commit 92ffcb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func Contains(expression string, expected interface{}) apitest.Assert {
return errors.New(fmt.Sprintf("\"%s\" could not be applied builtin len()", expected))
}
if !found {
return errors.New(fmt.Sprintf("\"%s\" does not contain \"%s\"", expected, value))
return errors.New(fmt.Sprintf("\"%s\" does not contain \"%s\"", value, expected))
}
return nil
}
Expand Down

0 comments on commit 92ffcb2

Please sign in to comment.