light-bolt11-decoder
Version:
<a href="https://nbd.wtf"><img align="right" height="196" src="https://user-images.githubusercontent.com/1653275/194609043-0add674b-dd40-41ed-986c-ab4a2e053092.png" /></a>
20 lines (16 loc) • 540 B
JavaScript
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()
})