Skip to content

Commit df41921

Browse files
authored
Merge pull request #137 from ZackWard/ZackWard-doc-patch
Update request.js documentation
2 parents 3ea4524 + c4067f8 commit df41921

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/request.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ var http = require('http')
6868
* // Send some Form Data
6969
* chai.request(app)
7070
* .post('/user/me')
71-
* .field('_method', 'put')
72-
* .field('password', '123')
73-
* .field('confirmPassword', '123')
71+
* .type('form')
72+
* .send({'_method': 'put'})
73+
* .send({'password': '123'})
74+
* .send({'confirmPassword', '123'})
7475
* ```
7576
*
7677
* ```js

0 commit comments

Comments
 (0)