import assert from 'node:assert/strict'
|
import { readFile } from 'node:fs/promises'
|
|
const dataList = await readFile(new URL('../src/components/ConsoleDataListPanel.vue', import.meta.url), 'utf8')
|
|
assert.match(dataList, /const before = originals\.get\(id\)/)
|
assert.doesNotMatch(dataList, /const before = row\s*\n\s*const after = \{ \.\.\.before/)
|
|
console.log('数据修订字段变化摘要契约通过')
|