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

Add expectations for testing JSON #4

Open
emhoracek opened this issue Jan 13, 2022 · 0 comments
Open

Add expectations for testing JSON #4

emhoracek opened this issue Jan 13, 2022 · 0 comments

Comments

@emhoracek
Copy link
Member

emhoracek commented Jan 13, 2022

Functions like shouldHaveText should include JSON text.

Also add functions that look for fields in JSON.

Example of problem:

  1) should not create an order with invalid data
       Json (RespCode 200) "[[\"error\",\"Invalid form fields\"]]" does not contain: error
@emhoracek emhoracek changed the title Add shoulds for testing JSON Add expectations for testing JSON Jan 13, 2022
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

1 participant