ilpcw/ilp-rest-service/ilp-cw-api/[GET] dronesWithCooling/dronesWithCooling -- true.bru

31 lines
566 B
Text

meta {
name: dronesWithCooling -> true
type: http
seq: 1
}
get {
url: {{API_BASE}}/dronesWithCooling/true
body: none
auth: inherit
}
tests {
test("Status code is 200", function() {
expect(res.status).to.equal(200);
});
test("Response body is a JSON array", function() {
expect(res.getBody()).to.be.an('array');
});
test("Array is not empty and contains String", function() {
const data = res.getBody();
expect(data[0]).to.be.a('string'); // data should be in String
});
}
settings {
encodeUrl: true
timeout: 0
}