Skip to content

Commit

Permalink
Remove a useless jest.fn() from a test
Browse files Browse the repository at this point in the history
  • Loading branch information
dottorblaster committed Mar 22, 2024
1 parent abdf993 commit cd7be02
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ describe('SuseManagerSettingsModal component', () => {
});

it('should display errors', async () => {
const onSave = jest.fn();

const detail = capitalize(faker.lorem.words(5));

const errors = [
Expand All @@ -154,7 +152,7 @@ describe('SuseManagerSettingsModal component', () => {
initialUrl={faker.internet.url()}
errors={errors}
open
onSave={onSave}
onSave={() => {}}
onCancel={() => {}}
/>
);
Expand Down

0 comments on commit cd7be02

Please sign in to comment.