23 lines
451 B
Text
23 lines
451 B
Text
|
|
meta {
|
||
|
|
name: Price Point API
|
||
|
|
}
|
||
|
|
|
||
|
|
headers {
|
||
|
|
Content-Type: application/json
|
||
|
|
}
|
||
|
|
|
||
|
|
tests {
|
||
|
|
test("Response status is not a server error", function() {
|
||
|
|
expect(res.getStatus()).to.be.below(500);
|
||
|
|
});
|
||
|
|
|
||
|
|
test("Response time is under 2 seconds", function() {
|
||
|
|
expect(res.getResponseTime()).to.be.below(2000);
|
||
|
|
});
|
||
|
|
|
||
|
|
test("Response body is valid JSON", function() {
|
||
|
|
const body = res.getBody();
|
||
|
|
expect(body).to.not.be.undefined;
|
||
|
|
});
|
||
|
|
}
|