// Auto-generated by: pnpm test:stylesheets:update import { join } from 'node:path'; import { compileLessWithTokens } from '../../../scripts/testStylesheets/compileLessWithTokens'; import { DEFAULT_LESS_PRELUDES, DEFAULT_TOKEN_CSS_FILES } from '../../../scripts/testStylesheets/config'; describe('components/CTABanner/CTABanner.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'CTABanner.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .ctaBanner { display: flex; flex-direction: column; gap: 24px; align-items: center; padding-top: 48px; padding-right: 24px; padding-bottom: 48px; padding-left: 24px; text-decoration: none; background: oklch(0.9496 0.0283 234.8404); } .ctaBanner .typography { max-inline-size: 520px; margin: 0 auto; text-align: center; text-wrap: balance; } @media only screen and (min-width: 576px) { .ctaBanner { padding-right: 48px; padding-left: 48px; } } .ctaBanner__content { display: flex; flex-direction: column; gap: 8px; } `); }); });