()
| 61 | fetchJsonStub.withArgs(params).returns(Promise.reject('FAIL')); |
| 62 | } else { |
| 63 | const textFunction = () => { |
| 64 | return !isString |
| 65 | ? Promise.resolve(JSON.stringify(response)) |
| 66 | : Promise.resolve(response); |
| 67 | }; |
| 68 | fetchJsonStub.withArgs(params).returns( |
| 69 | Promise.resolve({ |
| 70 | status: 200, |