Skip to content

Commit

Permalink
feat: swaps the order of "real" and "expected" arguments of "validate"
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Gavel's "validate" method now has the following call signature:
validate(expected, real)
  • Loading branch information
artem-zakharchenko committed Jun 5, 2019
1 parent 7823856 commit 1f2d29f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions features/javascript/request_api.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: Request validation
"""
And you define following HTTP request object:
"""
const request = {
const real = {
"method": "GET",
"uri": "/ip",
"headers": {
Expand All @@ -35,7 +35,7 @@ Feature: Request validation
Scenario: validate
When you call:
"""
gavel.validate(request, expected);
gavel.validate(expected, real);
"""
Then it will return:
"""
Expand Down
4 changes: 2 additions & 2 deletions features/javascript/response_api.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: Response validation
"""
And you define following HTTP response object:
"""
const response = {
const real = {
"statusCode": "200",
"statusMessage": "OK",
"headers": {
Expand Down Expand Up @@ -40,7 +40,7 @@ Feature: Response validation
Scenario: validate
When you call:
"""
gavel.validate(response, expected);
gavel.validate(expected, real);
"""
Then it will return:
"""
Expand Down

0 comments on commit 1f2d29f

Please sign in to comment.