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

Commit 725f822

Browse files
committed
test(code): refactor to screen
1 parent a77f8f3 commit 725f822

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

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

44
const renderComponent = (props) => {
55
const base = {
@@ -16,7 +16,7 @@ it('should render correctly', () => {
1616
})
1717

1818
it('should display children', () => {
19-
const { getByText } = renderComponent()
19+
renderComponent()
2020

21-
expect(getByText('content')).toBeInTheDocument()
21+
expect(screen.getByText('content')).toBeInTheDocument()
2222
})

0 commit comments

Comments
 (0)