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 b1f7b0a commit 670475dCopy full SHA for 670475d
packages/react/src/ActionList/Heading.test.tsx
@@ -61,14 +61,13 @@ describe('ActionList.Heading', () => {
61
})
62
63
it('should support a custom `className` on the outermost element', () => {
64
- expect(() =>
65
- HTMLRender(
66
- <ActionList>
67
- <ActionList.Heading as="h2" className="test-class-name">
68
- Filter by
69
- </ActionList.Heading>
70
- </ActionList>,
71
- ).container.querySelector('h2'),
72
- ).toHaveClass('test-class-name')
+ const actionList = HTMLRender(
+ <ActionList>
+ <ActionList.Heading as="h2" className="test-class-name">
+ Filter by
+ </ActionList.Heading>
+ </ActionList>,
+ )
+ expect(actionList.container.querySelector('h2')).toHaveClass('test-class-name')
73
74
0 commit comments