UNPKG

jest-allure2-reporter

Version:
14 lines 672 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.$Parameter = $Parameter; const jest_metadata_1 = require("jest-metadata"); const constants_1 = require("../../metadata/constants"); const utils_1 = require("../../utils"); function $Parameter(maybeParameter, maybeValue, maybeOptions) { utils_1.typeAssertions.assertNotNullish(maybeParameter, 'parameter name or options'); const parameter = typeof maybeParameter === 'string' ? { ...maybeOptions, name: maybeParameter, value: maybeValue } : maybeParameter; (0, jest_metadata_1.$Push)(constants_1.PARAMETERS, parameter); } //# sourceMappingURL=$Parameter.js.map