ConusAI vendor v0.1.0-dev.20261013+85463d22
This commit is contained in:
parent
c3c6526952
commit
0da8a2a81b
@@ -0,0 +1,24 @@
|
||||
import { readFileSync } from 'node:fs'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
// The template renders with browser-default styling unless the root layout
|
||||
// imports the global stylesheet (seen on stage 2026-10-10: the deployed
|
||||
// dashboard answered 200 with zero CSS linked). The layout is the one module
|
||||
// every page passes through, so its import is the whole contract.
|
||||
describe('global stylesheet', () => {
|
||||
const layout = readFileSync(
|
||||
new URL('../src/app/layouts/root.tsx', import.meta.url),
|
||||
'utf8',
|
||||
)
|
||||
|
||||
it('is imported by the root layout', () => {
|
||||
expect(layout).toMatch(/import\s+['"]\.\.\/globals\.css['"]/)
|
||||
})
|
||||
|
||||
it('exists and carries the design tokens', () => {
|
||||
const css = readFileSync(new URL('../src/app/globals.css', import.meta.url), 'utf8')
|
||||
expect(css).toContain(':root')
|
||||
expect(css).toContain('--accent')
|
||||
expect(css).toContain('main')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user