Skip to content

Commit cf83b27

Browse files
author
Kent C. Dodds
authored
docs: adding docs about the other HTTP methods. (#6)
* Update axios.js Adding docs about the other HTTP methods. * adding myself to the contributors list Closes #2
2 parents 3f1efbd + 3a99345 commit cf83b27

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.all-contributorsrc

+9
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@
3838
"code"
3939
]
4040
},
41+
{
42+
"login": "alejandronanez",
43+
"name": "Alejandro Ñáñez Ortiz",
44+
"avatar_url": "https://avatars3.githubusercontent.com/u/464978?v=4",
45+
"profile": "http://co.linkedin.com/in/alejandronanez/",
46+
"contributions": [
47+
"doc"
48+
]
49+
},
4150
{
4251
"login": "Miklet",
4352
"name": "Paweł Mikołajczyk",

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ Thanks goes to these people ([emoji key][emojis]):
354354
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
355355

356356
<!-- prettier-ignore -->
357-
| [<img src="https://avatars.githubusercontent.com/u/1500684?v=3" width="100px;"/><br /><sub><b>Kent C. Dodds</b></sub>](https://kentcdodds.com)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Code") [📖](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Documentation") [🚇](#infra-kentcdodds "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Tests") | [<img src="https://avatars1.githubusercontent.com/u/2430381?v=4" width="100px;"/><br /><sub><b>Ryan Castner</b></sub>](http://audiolion.github.io)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=audiolion "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/8008023?v=4" width="100px;"/><br /><sub><b>Daniel Sandiego</b></sub>](https://www.dnlsandiego.com)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=dnlsandiego "Code") | [<img src="https://avatars2.githubusercontent.com/u/12592677?v=4" width="100px;"/><br /><sub><b>Paweł Mikołajczyk</b></sub>](https://github.com/Miklet)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=Miklet "Code") |
357+
| [<img src="https://avatars.githubusercontent.com/u/1500684?v=3" width="100px;"/><br /><sub><b>Kent C. Dodds</b></sub>](https://kentcdodds.com)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Code") [📖](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Documentation") [🚇](#infra-kentcdodds "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Tests") | [<img src="https://avatars1.githubusercontent.com/u/2430381?v=4" width="100px;"/><br /><sub><b>Ryan Castner</b></sub>](http://audiolion.github.io)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=audiolion "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/8008023?v=4" width="100px;"/><br /><sub><b>Daniel Sandiego</b></sub>](https://www.dnlsandiego.com)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=dnlsandiego "Code") | [<img src="https://avatars3.githubusercontent.com/u/464978?v=4" width="100px;"/><br /><sub><b>Alejandro Ñáñez Ortiz</b></sub>](http://co.linkedin.com/in/alejandronanez/)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=alejandronanez "Documentation") | [<img src="https://avatars2.githubusercontent.com/u/12592677?v=4" width="100px;"/><br /><sub><b>Paweł Mikołajczyk</b></sub>](https://github.com/Miklet)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=Miklet "Code") |
358358
| :---: | :---: | :---: | :---: |
359359

360360
<!-- ALL-CONTRIBUTORS-LIST:END -->

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)