@iamkenos/iris
Version:
Test API endpoints with Axios & Jest using a collection of custom matchers and built-in utility functions.
13 lines • 592 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.whenSendRequest = void 0;
const _common_1 = require("../common/index");
const whenSendRequest = async (request) => {
_common_1.Reporter.startStep(`${_common_1.changecase.capitalCase(exports.whenSendRequest.name)}: ${request.spec.method} ${new URL(request.spec.url).pathname}`);
const response = await request.send();
_common_1.Reporter.attachResponse(response);
_common_1.Reporter.endStep();
return response;
};
exports.whenSendRequest = whenSendRequest;
//# sourceMappingURL=when.js.map