Skip to content

Commit 729e818

Browse files
docs: add an example for complex object in multipart upload
1 parent c2fd9ec commit 729e818

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ Anything you can do with superagent, you can do with supertest - for example mul
169169
request(app)
170170
.post('/')
171171
.field('name', 'my awesome avatar')
172+
.field('complex_object', '{"attribute": "value"}', {contentType: 'application/json'})
172173
.attach('avatar', 'test/fixtures/avatar.jpg')
173174
...
174175
```

0 commit comments

Comments
 (0)