We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello.
Is there any way to support many states API responses such as:
router["/api/v2/login"] = DelayResponse(JSONStringResponse(handler: { _ -> Any in return """ { "acess_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" } """ }))
router["/api/v2/login"] = DelayResponse(JSONStringResponse(handler: { _ -> Any in return """ { "message": "incorrect password" } """ }))
I mean I want to test a feature (login) with many cases as many API responses. Seem to now only one state can setup before a test.
Thank you so much.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello.
Is there any way to support many states API responses such as:
I mean I want to test a feature (login) with many cases as many API responses. Seem to now only one state can setup before a test.
Thank you so much.
The text was updated successfully, but these errors were encountered: