test(utilities): add test suite for interpolate-size utility
This commit is contained in:
parent
fa81d697fe
commit
b27065e6d5
1 changed files with 17 additions and 0 deletions
|
|
@ -3266,6 +3266,23 @@ test('field-sizing', async () => {
|
|||
).toEqual('')
|
||||
})
|
||||
|
||||
test('interpolate-size', async () => {
|
||||
expect(await run(['interpolate-size-allow', 'interpolate-size-numeric'])).toMatchInlineSnapshot(`
|
||||
"
|
||||
.interpolate-size-allow {
|
||||
interpolate-size: allow-keywords;
|
||||
}
|
||||
|
||||
.interpolate-size-numeric {
|
||||
interpolate-size: numeric-only;
|
||||
}
|
||||
"
|
||||
`)
|
||||
expect(
|
||||
await run(['interpolate-size-[other]', '-interpolate-size-allow', '-interpolate-size-numeric']),
|
||||
).toEqual('')
|
||||
})
|
||||
|
||||
test('aspect-ratio', async () => {
|
||||
expect(
|
||||
await run(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue