feat(platform): close AI expense value loop
Add tenant-safe value, telemetry, connector, commercial, and production-readiness foundations.
This commit is contained in:
@@ -40,6 +40,10 @@ const topBarComponent = readFileSync(
|
||||
fileURLToPath(new URL('../src/components/layout/TopBar.vue', import.meta.url)),
|
||||
'utf8'
|
||||
)
|
||||
const topBarOverviewRange = readFileSync(
|
||||
fileURLToPath(new URL('../src/components/layout/useTopBarOverviewRange.js', import.meta.url)),
|
||||
'utf8'
|
||||
)
|
||||
const appShellComposable = readFileSync(
|
||||
fileURLToPath(new URL('../src/composables/useAppShell.js', import.meta.url)),
|
||||
'utf8'
|
||||
@@ -144,10 +148,13 @@ test('risk dashboard follows the top overview range without card-level selectors
|
||||
|
||||
test('overview custom date defaults use current year instead of hard-coded legacy dates', () => {
|
||||
assert.match(topBarComponent, /createCurrentYearDateRange/)
|
||||
assert.match(topBarComponent, /formatDateValue/)
|
||||
assert.match(topBarComponent, /useTopBarOverviewRange/)
|
||||
assert.match(topBarOverviewRange, /formatDateValue/)
|
||||
assert.match(topBarOverviewRange, /useTopBarOverviewRange\(props, emit\)/)
|
||||
assert.match(appShellComposable, /createCurrentYearDateRange\(\)/)
|
||||
assert.match(legacyAppScript, /createCurrentYearDateRange\(\)/)
|
||||
assert.doesNotMatch(topBarComponent, /2024-07-06|2024-07-12/)
|
||||
assert.doesNotMatch(topBarOverviewRange, /2024-07-06|2024-07-12/)
|
||||
assert.doesNotMatch(appShellComposable, /2024-07-06|2024-07-12/)
|
||||
assert.doesNotMatch(legacyAppScript, /2024-07-06|2024-07-12/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user