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.

23 lines
579 B

import transformCss from '..'
it('transforms flexFlow shorthand with two values', () => {
expect(transformCss([['flex-flow', 'column wrap']])).toEqual({
flexDirection: 'column',
flexWrap: 'wrap',
})
})
it('transforms flexFlow shorthand missing flexDirection', () => {
expect(transformCss([['flex-flow', 'wrap']])).toEqual({
flexDirection: 'row',
flexWrap: 'wrap',
})
})
it('transforms flexFlow shorthand missing flexWrap', () => {
expect(transformCss([['flex-flow', 'column']])).toEqual({
flexDirection: 'column',
flexWrap: 'nowrap',
})
})