yeg
2026-09-28 6a4ca47df73d99e952d926f6103bcccea1ecea89
tests/test-console-project-chart.contract.test.mjs
@@ -2,6 +2,7 @@
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/)
@@ -10,9 +11,9 @@
assert.match(chart, /endVoltage/)
assert.match(chart, /dischargeCapacityPerFactor/)
assert.match(chart, /capacityFactor/)
assert.match(chart, /finalVoltage2/)
assert.match(chart, /metric\.key !== 'finalVoltage2'/)
assert.match(chart, /connectNulls: false/)
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/)