// 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/Image/Image.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'Image.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .v2image { position: relative; overflow: hidden; display: block; aspect-ratio: 3 / 2; width: 100%; } .v2image .typography { margin-bottom: 0; } .v2image--responsive { aspect-ratio: auto; } .v2image--sm { width: 130px; } .v2image--md { width: 220px; } .v2image--lg { width: 440px; } .v2image--full { width: 100%; } .v2image__img { display: block; width: 100%; height: 100%; } .v2image__img--contain { object-fit: contain; } .v2image__img--cover { object-fit: cover; } .v2image__fallback { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; } `); }); });