mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-01 04:13:41 +01:00
ed20eccc25
* feat: updates * feat: updates * feat: updates * feat: updates
23 lines
352 B
Plaintext
23 lines
352 B
Plaintext
meta {
|
|
name: echo multipart via scripting
|
|
type: http
|
|
seq: 10
|
|
}
|
|
|
|
post {
|
|
url: {{echo-host}}
|
|
body: multipartForm
|
|
auth: none
|
|
}
|
|
|
|
assert {
|
|
res.body: contains form-data-value
|
|
}
|
|
|
|
script:pre-request {
|
|
const FormData = require("form-data");
|
|
const form = new FormData();
|
|
form.append('form-data-key', 'form-data-value');
|
|
req.setBody(form);
|
|
}
|