Skip to content

Commit

Permalink
fixing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
antriksh-9 authored Mar 19, 2024
1 parent 79c1ff0 commit b7ed3a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/resolvers/Mutation/createOrganization.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,14 +444,14 @@ describe("resolvers -> Mutation -> createOrganization", () => {
// Validate that the error message matches the expected Address Validation Error message
if(error instanceof Error){
expect(error.message).toEqual("Not a Valid Address");
expect.fail("The error message does not match the expected message");
throw new Error("The error message does not match the expected message");
}
}
} else {
console.error(
"Error: createOrganizationResolver is undefined in the test suite",
console.log(
"Error: createOrganizationResolver is undefined in the test suite"
);
expect.fail("createOrganizationResolver is undefined");
throw new Error("createOrganizationResolver is undefined");
}
});
});

0 comments on commit b7ed3a7

Please sign in to comment.