Closed truizlop closed 4 years ago
This PR lets you stack multiple stubbed responses and route them for a specific endpoint in testing. Besides, some refactor for renaming and duplication removal has been done.
apiConfig.stub(error: Mother.Error.general, endpoint: "/failing-endpoint") .stub(dataRaw: "{}", endpoint: "/test")
apiConfig.stub(error: Mother.Error.general, endpoint: "/test") .stub(dataRaw: "{}", endpoint: "/test")
This PR lets you stack multiple stubbed responses and route them for a specific endpoint in testing. Besides, some refactor for renaming and duplication removal has been done.
Routing
Stacking