Skip to content

Commit 88db984

Browse files
Update axios.js
Adding docs about the other HTTP methods.
1 parent 4e2a02a commit 88db984

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/__mocks__/axios.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
module.exports = {
22
get: jest.fn(() => Promise.resolve({data: {}})),
33
}
4+
5+
// Note:
6+
// For now we don't need any other method (POST/PUT/PATCH), what we have already works fine.
7+
// We will add more methods only if we need to.
8+
// For reference please read: https://github.com/kentcdodds/react-testing-library/issues/2

0 commit comments

Comments
 (0)