yeg
2026-09-28 864ee2a6c3d86c6bb3af7eaf31b2390d2970c56e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import assert from 'node:assert/strict'
import { readFile } from 'node:fs/promises'
 
const chart = await readFile(new URL('../src/components/ConsoleProjectChartPanel.vue', import.meta.url), 'utf8')
const plot = await readFile(new URL('../src/utils/projectCycleChart.ts', import.meta.url), 'utf8')
const consoleView = await readFile(new URL('../src/views/TestConsole.vue', import.meta.url), 'utf8')
 
assert.match(chart, /PersistedTestStep/)
assert.match(chart, /PersistedTestCycle/)
assert.match(chart, /lastStepVoltage/)
assert.match(chart, /endVoltage/)
assert.match(chart, /dischargeCapacityPerFactor/)
assert.match(chart, /capacityFactor/)
assert.match(plot, /finalVoltage2/)
assert.match(plot, /metric\.key === 'finalVoltage2' \? \[\]/)
assert.match(plot, /connectNulls: false/)
assert.match(chart, /value === null \|\| value === undefined/)
assert.match(consoleView, /getPersistedTestSteps/)
assert.match(consoleView, /getPersistedTestCycles/)
assert.match(consoleView, /projectCapacityFactor\.value = group\?\.specs\.f \|\| ''/)
 
console.log('Ticket12 工步与项目图表契约通过')