UNPKG

n8n

Version:

n8n Workflow Automation Tool

34 lines 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toTestRunSummaryDto = toTestRunSummaryDto; exports.toTestCaseExecutionDto = toTestCaseExecutionDto; function toTestRunSummaryDto(run) { return { id: run.id, status: run.status, runAt: run.runAt?.toISOString() ?? null, completedAt: run.completedAt?.toISOString() ?? null, metrics: run.metrics ?? null, errorCode: run.errorCode ?? null, errorDetails: run.errorDetails ?? null, finalResult: run.finalResult ?? null, testCaseCount: run.testCaseCount, createdAt: run.createdAt.toISOString(), updatedAt: run.updatedAt.toISOString(), }; } function toTestCaseExecutionDto(testCase) { return { id: testCase.id, status: testCase.status, runAt: testCase.runAt?.toISOString() ?? null, completedAt: testCase.completedAt?.toISOString() ?? null, metrics: testCase.metrics ?? null, errorCode: testCase.errorCode ?? null, errorDetails: testCase.errorDetails ?? null, inputs: testCase.inputs ?? null, outputs: testCase.outputs ?? null, executionId: testCase.executionId ?? null, }; } //# sourceMappingURL=evaluations.mapper.js.map