Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 0037cb9

Browse files
committed
test(Box): refactor box tests
1 parent 5cdb5af commit 0037cb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/chakra-ui-core/src/CBox/tests/CBox.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import CBox from '../'
2-
import { render } from '@/tests/test-utils'
2+
import { render, screen } from '@/tests/test-utils'
33

44
const renderComponent = (props) => {
55
const inlineAttrs = (props && props.inlineAttrs) || ''
@@ -22,9 +22,9 @@ it('should change the style', () => {
2222
d="flex" :w="['auto']" px="5" py="5" shadow="lg"
2323
my="5" mb="5" rounded="sm" font-family="body"
2424
background-color="blue.200" color="blue.700"`
25-
const { asFragment, getByTestId } = renderComponent({ inlineAttrs })
25+
const { asFragment } = renderComponent({ inlineAttrs })
2626

27-
const box = getByTestId('box')
27+
const box = screen.getByTestId('box')
2828

2929
expect(asFragment()).toMatchSnapshot()
3030
expect(box).toHaveStyle('display: flex')

0 commit comments

Comments
 (0)