Skip to content

Commit b6c23ea

Browse files
alejandronanezKent C. Dodds
authored and
Kent C. Dodds
committed
Update axios.js
Adding docs about the other HTTP methods.
1 parent 3f1efbd commit b6c23ea

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)