styles.spec.ts 586 B

12345678910111213
  1. import { readFileSync } from 'node:fs'
  2. import { fileURLToPath } from 'node:url'
  3. import { describe, expect, it } from 'vitest'
  4. const css = readFileSync(fileURLToPath(new URL('../src/client/ModelsSection.module.css', import.meta.url)), 'utf8')
  5. describe('ModelsSection theme styles', () => {
  6. it('uses the shared theme tokens without light-only fallbacks', () => {
  7. expect(css).not.toMatch(/var\(--(?:surface|text-|border|accent-strong)/)
  8. expect(css).toContain('background: var(--dsw-alias-bg-layer-3)')
  9. expect(css).toContain('color: var(--dsw-alias-label-primary)')
  10. })
  11. })