We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e75894 commit 6096c95Copy full SHA for 6096c95
src/components/action-sheet/tests/action-sheet.test.tsx
@@ -252,12 +252,12 @@ describe('ActionSheet', () => {
252
})
253
254
test('should apply custom prefixCls(component) ', () => {
255
- const { container } = render(
+ render(
256
<ConfigProvider prefixCls='custom-prefix'>
257
<ActionSheet visible prefixCls='another-prefix' actions={[]} />
258
</ConfigProvider>
259
)
260
- expect(container.querySelector('.custom-prefix-action-sheet')).toBeFalsy()
261
- expect(container.querySelector('.another-prefix')).toBeTruthy()
+ expect(document.querySelector('.custom-prefix-action-sheet')).toBeFalsy()
+ expect(document.querySelector('.another-prefix')).toBeTruthy()
262
263
0 commit comments