Skip to content

Commit 2bd95cf

Browse files
committed
Use a function mock ref instead of a string.
1 parent 47a97a9 commit 2bd95cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

__tests__/src/components/ManifestListItem.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function createWrapper(props) {
2020

2121
describe('ManifestListItem', () => {
2222
it('renders without an error', () => {
23-
createWrapper({ buttonRef: 'ref' });
23+
createWrapper({ buttonRef: jest.fn() });
2424

2525
expect(screen.getByRole('listitem')).toHaveAttribute('data-manifestid', 'http://example.com');
2626
expect(screen.getByRole('listitem')).toHaveClass('MuiListItem-root');

0 commit comments

Comments
 (0)