Skip to content

Commit 77a7a93

Browse files
barrapontokeithamus
authored andcommitted
docs: fix form test example in README (#166)
1 parent 6e88c38 commit 77a7a93

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,12 @@ chai.request(app)
8787
// Send some Form Data
8888
chai.request(app)
8989
.post('/user/me')
90-
.field('_method', 'put')
91-
.field('password', '123')
92-
.field('confirmPassword', '123')
90+
.type('form')
91+
.send({
92+
'_method': 'put',
93+
'password': '123',
94+
'confirmPassword': '123'
95+
})
9396
```
9497

9598
```js

0 commit comments

Comments
 (0)