Skip to content

Commit 92ffcb2

Browse files
author
Albin Remnestål
authored
Fix: order of expected/value in error message (#13)
1 parent a9ce177 commit 92ffcb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonpath.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func Contains(expression string, expected interface{}) apitest.Assert {
2929
return errors.New(fmt.Sprintf("\"%s\" could not be applied builtin len()", expected))
3030
}
3131
if !found {
32-
return errors.New(fmt.Sprintf("\"%s\" does not contain \"%s\"", expected, value))
32+
return errors.New(fmt.Sprintf("\"%s\" does not contain \"%s\"", value, expected))
3333
}
3434
return nil
3535
}

0 commit comments

Comments
 (0)