mock(matcher, response) , where matcher is an exact url or regex to match, and response is a status code, string or object literal. You can also use fetchMock.
確定! 回上一頁