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 WonderWidgets are great", "Who buys 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'); }); }