frisby
Version:
Frisby.js v2.0: REST API Endpoint Testing built on Jasmine
30 lines (22 loc) • 406 B
JavaScript
;
class FrisbyResponse {
constructor(fetchResponse) {
this._response = fetchResponse;
}
get status() {
return this._response.status;
}
get body() {
return this._body;
}
get headers() {
return this._response.headers;
}
get json() {
return this._json;
}
get responseTime() {
return this._responseTimeMs;
}
}
module.exports = FrisbyResponse;