You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var server = sinon.createFakeServer([config]);
server.respondWith(urlRegExp, response);
It works but regular expression can be tricky. I hope FakeServer supports:
fakeServer.respondWith(customMatcherFunction, response);
function customMatcherFunction(url) {
return url.endsWith("xxx");
}
Could you please consider this? Really appreciate it!
The text was updated successfully, but these errors were encountered:
johnmiroki
changed the title
[Function Request] fakeServer.respondWith(customMatcherFunction, response);
[Feature Request] fakeServer.respondWith(customMatcherFunction, response);
Dec 9, 2020
Currently, to make a mock data server:
It works but regular expression can be tricky. I hope FakeServer supports:
Could you please consider this? Really appreciate it!
The text was updated successfully, but these errors were encountered: