You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
540 B
20 lines
540 B
3 years ago
|
import transformCss from '..'
|
||
|
|
||
|
it('transforms place content', () => {
|
||
|
expect(transformCss([['place-content', 'center center']])).toEqual({
|
||
|
alignContent: 'center',
|
||
|
justifyContent: 'center',
|
||
|
})
|
||
|
})
|
||
|
|
||
|
it('transforms place content with one value', () => {
|
||
|
expect(transformCss([['place-content', 'center']])).toEqual({
|
||
|
alignContent: 'center',
|
||
|
justifyContent: 'stretch',
|
||
|
})
|
||
|
})
|
||
|
|
||
|
it('does not allow justify content without align content', () => {
|
||
|
expect(() => transformCss([['place-content', 'space-evenly']])).toThrow()
|
||
|
})
|