Skip to content

Commit 9068e7b

Browse files
author
Luke Pearson
committed
Removed unused onClick callback in test
1 parent 11a752e commit 9068e7b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/skip-link/__tests__/SkipLink.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ describe('SkipLink', () => {
3131
});
3232

3333
it('does not set the href to #maincontent if disableDefaultBehaviour is set', () => {
34-
const onClick = jest.fn();
35-
const component = mount(<SkipLink disableDefaultBehaviour onClick={onClick} />);
34+
const component = mount(<SkipLink disableDefaultBehaviour />);
3635
expect(component.find('.nhsuk-skip-link').prop('href')).toBeUndefined();
3736
});
3837
});

0 commit comments

Comments
 (0)