Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expected & actual result are switched #356

Closed
yanns opened this issue Apr 20, 2020 · 1 comment
Closed

expected & actual result are switched #356

yanns opened this issue Apr 20, 2020 · 1 comment

Comments

@yanns
Copy link
Collaborator

yanns commented Apr 20, 2020

Given the test:

Then assert body.path("data.updateStore.distributionChannelsRef").isNull

it fails with the following message:

 Then assert response body's field 'data.updateStore.distributionChannelsRef' is null [2 ms]
      *** FAILED ***
      expected result was:
      '[
      ]'
      but actual result is:
      'null'

      JSON patch between actual result and expected result is :
      [
        {
          "op" : "replace",
          "path" : "",
          "value" : null,
          "old" : [
          ]
        }
      ]

expected and actual are switched

@agourlay
Copy link
Owner

Thank you very much for the bug report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants