mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-26 22:25:40 +00:00
* fix: update test URLs from httpbin to echo.usebruno.com across multiple test files * fix: standardize URL formatting in insomnia test files * chore: standardize URL formatting in insomnia test files
59 lines
1.1 KiB
Plaintext
59 lines
1.1 KiB
Plaintext
meta {
|
|
name: Get User Info
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
post {
|
|
url: https://echo.usebruno.com
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"slideshow": {
|
|
"author": "Yours Truly",
|
|
"date": "date of publication",
|
|
"slides": [
|
|
{
|
|
"title": "Wake up to WonderWidgets!",
|
|
"type": "all"
|
|
},
|
|
{
|
|
"items": [
|
|
"Why <em>WonderWidgets</em> are great",
|
|
"Who <em>buys</em> WonderWidgets"
|
|
],
|
|
"title": "Overview",
|
|
"type": "all"
|
|
}
|
|
],
|
|
"title": "Sample Slide Show"
|
|
}
|
|
}
|
|
}
|
|
|
|
headers {
|
|
Accept: application/json
|
|
}
|
|
|
|
tests {
|
|
test("Status code is 200", function() {
|
|
expect(res.getStatus()).to.equal(200);
|
|
});
|
|
|
|
test("Response is an object", function() {
|
|
expect(res.getBody()).to.be.an('object');
|
|
});
|
|
|
|
test("Response has slideshow property", function() {
|
|
expect(res.getBody()).to.have.property('slideshow');
|
|
});
|
|
|
|
test("Slideshow has title", function() {
|
|
const body = res.getBody();
|
|
expect(body.slideshow).to.have.property('title');
|
|
});
|
|
}
|