refactor: enforce 800 line source limits
This commit is contained in:
@@ -13,6 +13,11 @@ const radarChart = readFileSync(
|
||||
'utf8'
|
||||
)
|
||||
|
||||
const modalStyles = readFileSync(
|
||||
fileURLToPath(new URL('../src/assets/styles/components/expense-profile-detail-modal.css', import.meta.url)),
|
||||
'utf8'
|
||||
)
|
||||
|
||||
test('expense profile modal remounts the behavior radar when opened', () => {
|
||||
assert.match(modal, /destroy-on-close/)
|
||||
assert.match(modal, /<RadarChart/)
|
||||
@@ -24,14 +29,14 @@ test('expense profile modal remounts the behavior radar when opened', () => {
|
||||
|
||||
test('expense profile modal uses compact laptop dialog sizing', () => {
|
||||
assert.match(modal, /width="min\(960px, calc\(100vw - 64px\)\)"/)
|
||||
assert.match(modal, /max-height:\s*min\(580px, calc\(100dvh - 176px\)\)/)
|
||||
assert.match(modalStyles, /max-height:\s*min\(580px, calc\(100dvh - 176px\)\)/)
|
||||
assert.match(
|
||||
modal,
|
||||
modalStyles,
|
||||
/@media \(min-width: 861px\) and \(max-width: 1440px\),\s*\n\s*\(min-width: 861px\) and \(max-height: 820px\)/
|
||||
)
|
||||
assert.match(modal, /width:\s*min\(900px, calc\(100vw - 96px\)\) !important;/)
|
||||
assert.match(modal, /max-height:\s*min\(520px, calc\(100dvh - 152px\)\)/)
|
||||
assert.match(modal, /\.profile-radar-chart \{[\s\S]*height:\s*248px;/)
|
||||
assert.match(modalStyles, /width:\s*min\(900px, calc\(100vw - 96px\)\) !important;/)
|
||||
assert.match(modalStyles, /max-height:\s*min\(520px, calc\(100dvh - 152px\)\)/)
|
||||
assert.match(modalStyles, /\.profile-radar-chart \{[\s\S]*height:\s*248px;/)
|
||||
})
|
||||
|
||||
test('radar chart uses the shared echarts lifecycle and enables entrance animation', () => {
|
||||
|
||||
Reference in New Issue
Block a user