Skip to content

Commit 670475d

Browse files
committed
Fix test
1 parent b1f7b0a commit 670475d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

packages/react/src/ActionList/Heading.test.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,13 @@ describe('ActionList.Heading', () => {
6161
})
6262

6363
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')
64+
const actionList = HTMLRender(
65+
<ActionList>
66+
<ActionList.Heading as="h2" className="test-class-name">
67+
Filter by
68+
</ActionList.Heading>
69+
</ActionList>,
70+
)
71+
expect(actionList.container.querySelector('h2')).toHaveClass('test-class-name')
7372
})
7473
})

0 commit comments

Comments
 (0)