// 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/ImageCrop/ImageCrop.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'ImageCrop.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .image-crop .advanced-cropper { background-color: oklch(0.9067 0 none); background-image: linear-gradient(45deg, oklch(0.7572 0 none) 25%, transparent 25%), linear-gradient(-45deg, oklch(0.7572 0 none) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, oklch(0.7572 0 none) 75%), linear-gradient(-45deg, transparent 75%, oklch(0.7572 0 none) 75%); background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-size: 16px 16px; } .image-crop .advanced-cropper-simple-handler { width: 6px; height: 6px; border: 1px solid oklch(0.7247 0.1478 233.0429); } .image-crop .advanced-cropper-simple-line { border-color: oklch(0.7247 0.1478 233.0429); } `); }); });