|
|
|
@ -287,6 +287,7 @@ describe('Box', () => { |
|
|
|
|
<Box borderRadius={BORDER_RADIUS.LG}>border radius lg</Box> |
|
|
|
|
<Box borderRadius={BORDER_RADIUS.XL}>border radius xl</Box> |
|
|
|
|
<Box borderRadius={BORDER_RADIUS.PILL}>border radius pill</Box> |
|
|
|
|
<Box borderRadius={BORDER_RADIUS.FULL}>border radius full</Box> |
|
|
|
|
<Box borderRadius={BORDER_RADIUS.NONE}>border radius none</Box> |
|
|
|
|
</>, |
|
|
|
|
); |
|
|
|
@ -297,6 +298,7 @@ describe('Box', () => { |
|
|
|
|
expect(getByText('border radius lg')).toHaveClass('box--rounded-lg'); |
|
|
|
|
expect(getByText('border radius xl')).toHaveClass('box--rounded-xl'); |
|
|
|
|
expect(getByText('border radius pill')).toHaveClass('box--rounded-pill'); |
|
|
|
|
expect(getByText('border radius full')).toHaveClass('box--rounded-full'); |
|
|
|
|
expect(getByText('border radius none')).toHaveClass('box--rounded-none'); |
|
|
|
|
}); |
|
|
|
|
it('should render the Box with the responsive borderRadius classes', () => { |
|
|
|
@ -317,6 +319,7 @@ describe('Box', () => { |
|
|
|
|
BORDER_RADIUS.XL, |
|
|
|
|
BORDER_RADIUS.PILL, |
|
|
|
|
BORDER_RADIUS.NONE, |
|
|
|
|
BORDER_RADIUS.FULL, |
|
|
|
|
]} |
|
|
|
|
> |
|
|
|
|
Border radius set 2 |
|
|
|
@ -341,6 +344,9 @@ describe('Box', () => { |
|
|
|
|
expect(getByText('Border radius set 2')).toHaveClass( |
|
|
|
|
'box--md:rounded-none', |
|
|
|
|
); |
|
|
|
|
expect(getByText('Border radius set 2')).toHaveClass( |
|
|
|
|
'box--lg:rounded-full', |
|
|
|
|
); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
describe('display, gap, flexDirection, flexWrap, alignItems, justifyContent', () => { |
|
|
|
|