Skip to content

Commit 6096c95

Browse files
author
刘欢
committed
test: find in document
1 parent 4e75894 commit 6096c95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/action-sheet/tests/action-sheet.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ describe('ActionSheet', () => {
252252
})
253253

254254
test('should apply custom prefixCls(component) ', () => {
255-
const { container } = render(
255+
render(
256256
<ConfigProvider prefixCls='custom-prefix'>
257257
<ActionSheet visible prefixCls='another-prefix' actions={[]} />
258258
</ConfigProvider>
259259
)
260-
expect(container.querySelector('.custom-prefix-action-sheet')).toBeFalsy()
261-
expect(container.querySelector('.another-prefix')).toBeTruthy()
260+
expect(document.querySelector('.custom-prefix-action-sheet')).toBeFalsy()
261+
expect(document.querySelector('.another-prefix')).toBeTruthy()
262262
})
263263
})

0 commit comments

Comments
 (0)