Skip to content

Commit

Permalink
docs: add an example for complex object in multipart upload
Browse files Browse the repository at this point in the history
  • Loading branch information
francescobarbera authored Feb 16, 2022
1 parent c2fd9ec commit 729e818
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ Anything you can do with superagent, you can do with supertest - for example mul
request(app)
.post('/')
.field('name', 'my awesome avatar')
.field('complex_object', '{"attribute": "value"}', {contentType: 'application/json'})
.attach('avatar', 'test/fixtures/avatar.jpg')
...
```
Expand Down

0 comments on commit 729e818

Please sign in to comment.