15 lines
678 B
JavaScript
15 lines
678 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const trace_1 = require("./trace");
|
|
const report_1 = require("./report");
|
|
const requirements = [
|
|
{ id: 'REQ-01', mandatory: true, title: '温度量程' },
|
|
{ id: 'REQ-02', mandatory: true, title: '电压监测' },
|
|
{ id: 'REQ-03', mandatory: true, title: '日志保存' },
|
|
];
|
|
const cases = [
|
|
{ id: 'TC-01', requirementIds: ['REQ-01'], status: 'passed', evidenceUntil: '2027-01-01' },
|
|
{ id: 'TC-02', requirementIds: ['REQ-02'], status: 'failed', evidenceUntil: '2027-01-01' },
|
|
];
|
|
console.log((0, report_1.formatReport)((0, trace_1.evaluateTrace)(requirements, cases, '2026-09-25')));
|