Skip to content

Commit 813445a

Browse files
authored
Update mock-request.js (#157)
1 parent 059518b commit 813445a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mock-request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function MockRequest(
4646
this.on = (method, endpoint, status, response) =>
4747
handler(method, endpoint, status, response);
4848

49-
const methods = ['get', 'post', 'put', 'delete'];
49+
const methods = ['get', 'post', 'put', 'delete','patch'];
5050
methods.forEach((method) => {
5151
this[method] = (endpoint, status, options) =>
5252
handler(method, endpoint, status, options);

0 commit comments

Comments
 (0)