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

Commit 2403331

Browse files
committed
test(divider): refactor use screen
1 parent 7a488ef commit 2403331

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import CDivider 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) || ''
@@ -26,9 +26,9 @@ it('should change orientation', () => {
2626

2727
it('should have corresponding aria-orientation attribute', () => {
2828
const inlineAttrs = 'orientation="horizontal"'
29-
const { asFragment, getByTestId } = renderComponent({ inlineAttrs })
29+
const { asFragment } = renderComponent({ inlineAttrs })
3030

31-
const divider = getByTestId('divider')
31+
const divider = screen.getByTestId('divider')
3232
expect(divider).toHaveAttribute('aria-orientation', 'horizontal')
3333
expect(asFragment()).toMatchSnapshot()
3434
})

0 commit comments

Comments
 (0)