bubbleBounds test also pins the Bubble.tsx wiring
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 4m51s
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 4m51s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4208b1e25c
commit
fb03aa0ffb
1 changed files with 10 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { readFileSync } from 'fs';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import zlib from 'zlib';
|
||||
import { compile, processVanillaFile } from '@vanilla-extract/integration';
|
||||
|
|
@ -35,4 +36,13 @@ describe('bubble rows shrink to their column', () => {
|
|||
const css = await emitted();
|
||||
expect(declarations(css, 'BubbleContent').join('\n')).toMatch(/max-width: min\(100%, 50rem\)/);
|
||||
});
|
||||
|
||||
it('Bubble.tsx puts BubbleColumn on the column and BubbleContentRow on the row', () => {
|
||||
const tsx = readFileSync(
|
||||
`${process.cwd()}/src/app/components/message/layout/Bubble.tsx`,
|
||||
'utf8'
|
||||
);
|
||||
expect(tsx).toMatch(/classNames\(css\.BubbleColumn,/);
|
||||
expect(tsx).toMatch(/<Box className=\{css\.BubbleContentRow\}>/);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue