Skip to content

Commit

Permalink
Clean up: Remove test cases which are already covered
Browse files Browse the repository at this point in the history
  • Loading branch information
pmakode-akamai committed Sep 5, 2024
1 parent 91df88b commit 1e74206
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions packages/manager/src/features/Events/asyncToasts.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,30 +70,6 @@ describe('createToast', () => {
});
});

it('should handle case with failure as true and success as false', () => {
const options = { failure: true, success: false };
const result = createToast(options);
const expected = {
failure: {
message: expect.any(Function),
},
};

expect(result).toEqual(expected);
});

it('should handle case with success as true and failure as false', () => {
const options = { failure: false, success: true };
const result = createToast(options);
const expected = {
success: {
message: expect.any(Function),
},
};

expect(result).toEqual(expected);
});

it('should handle cases with specific values for only failure or success options', () => {
// Only the failure options with specific values
const failureOnlyOptions = {
Expand Down

0 comments on commit 1e74206

Please sign in to comment.