UNPKG

1.4 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.testResult = exports.stepResult = exports.fixtureResult = exports.testResultContainer = void 0;
4const crypto_1 = require("crypto");
5const model_js_1 = require("./model.js");
6const testResultContainer = () => {
7 return {
8 uuid: (0, crypto_1.randomUUID)(),
9 children: [],
10 befores: [],
11 afters: [],
12 };
13};
14exports.testResultContainer = testResultContainer;
15const fixtureResult = () => {
16 return {
17 status: model_js_1.Status.BROKEN,
18 statusDetails: {},
19 stage: model_js_1.Stage.PENDING,
20 steps: [],
21 attachments: [],
22 parameters: [],
23 };
24};
25exports.fixtureResult = fixtureResult;
26const stepResult = () => {
27 return {
28 status: undefined,
29 statusDetails: {},
30 stage: model_js_1.Stage.PENDING,
31 steps: [],
32 attachments: [],
33 parameters: [],
34 };
35};
36exports.stepResult = stepResult;
37const testResult = () => {
38 return {
39 uuid: (0, crypto_1.randomUUID)(),
40 historyId: (0, crypto_1.randomUUID)(),
41 status: undefined,
42 statusDetails: {},
43 stage: model_js_1.Stage.PENDING,
44 steps: [],
45 attachments: [],
46 parameters: [],
47 labels: [],
48 links: [],
49 };
50};
51exports.testResult = testResult;
52//# sourceMappingURL=constructors.js.map
\No newline at end of file