Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
JamalAlabdullah committed Feb 5, 2024
1 parent 20b46be commit 46cf3ad
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const initialData: DatamodelMetadata[] = [
describe('useDeleteDatamodelMutation', () => {
beforeEach(jest.clearAllMocks);

it('Returns correct state with the correct parameters', async () => {
it('Check mutation function Execution', async () => {
const queryClient = createQueryClientMock();
const deleteDatamodel = jest.fn();
const {
Expand All @@ -53,7 +53,7 @@ describe('useDeleteDatamodelMutation', () => {
expect(removeDatamodelFromList).toHaveBeenCalled;
});

it('Calls onSuccess correctly with mutate function', async () => {
it('Check calling onSuccess function', async () => {
const queryClient = createQueryClientMock();
const deleteDatamodel = jest.fn();
const {
Expand Down Expand Up @@ -118,7 +118,7 @@ describe('useDeleteDatamodelMutation', () => {
).toEqual(undefined);
});

it('Calls onSuccess correctly', async () => {
it('Check mutation result', async () => {
const queryClient = createQueryClientMock();
const deleteDatamodel = jest.fn();
const {
Expand Down

0 comments on commit 46cf3ad

Please sign in to comment.