import test from 'node:test' import assert from 'node:assert/strict' import { readFileSync } from 'node:fs' const source = readFileSync(new URL('../../src/components/PendingReceipts/index.vue', import.meta.url), 'utf8') const rule = selector => source.match(new RegExp(`${selector.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}\\{([^}]+)\\}`))?.[1] || '' test('pending batch sidebar overrides the legacy global aside decoration with theme-aware styles', () => { const sidebar = rule('.pending-sources') for (const declaration of ['padding:0', 'margin:0', 'background:var(--el-bg-color)', 'color:var(--el-text-color-primary)', 'font:inherit', 'line-height:normal']) { assert.ok(sidebar.includes(declaration), `Missing sidebar reset: ${declaration}`) } assert.doesNotMatch(sidebar, /#[0-9a-f]{3,8}\b|\b(?:white|black)\b/i) assert.match(source, /