also looking at this
fix(ui): align component palette and contain homepage hero
#16
7 files
+157
-13
| @@ -0,0 +1,10 @@ | ||
| 1 | import { expect, test } from 'bun:test' | |
| 2 | import { readFileSync } from 'node:fs' | |
| 3 | ||
| 4 | const home = readFileSync(new URL('../../resources/views/index.stx', import.meta.url), 'utf8') | |
| 5 | ||
| 6 | test('the hero image stays inside its grid column at desktop widths', () => { | |
| 7 | const figure = home.match(/<figure class="([^"]*)">/)?.[1] ?? '' | |
| 8 | expect(figure).toContain('min-w-0') | |
| 9 | expect(figure).not.toMatch(/(?:^|\s)(?:\w+:)?-mr-/) | |
| 10 | }) | |