/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/components/src/utils/test/space.js
15 строк
451 B
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
import { space } from '../space'; describe( 'space', () => { it.each` input | output ${ 1 } | ${ 'calc(4px * 1)' } ${ '1' } | ${ 'calc(4px * 1)' } ${ '-1px' } | ${ '-1px' } ${ '1em' } | ${ '1em' } ${ '1notaunit' } | ${ '1notaunit' } ${ 'auto' } | ${ 'auto' } `( 'should return $output when given $input', ( { input, output } ) => { expect( space( input ) ).toEqual( output ); } ); } );