UNPKG

just-api

Version:

Specification based API test framework for HTTP APIs (REST, GraphQL)

21 lines (17 loc) 489 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); class JustAPIResponse { constructor(req, err, response, body) { this._req = req; this._err = err; this._response = response; this._body = body; if (response.timingPhases && response.timingPhases.total) { this._response.duration = response.timingPhases.total; } } } exports.default = JustAPIResponse; module.exports = exports['default'];