Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
prayanshchh committed Nov 10, 2024
1 parent be77cba commit 359d762
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions tests/resolvers/Mutation/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,9 @@ describe("resolvers -> Mutation -> login", () => {
});

it("throws ValidationError if email is not found in args.data", async () => {
const { requestContext } = await import("../../../src/libraries");

// Spy on the translate function to capture error messages

try {
const email = `nonexistentuser${nanoid().toLowerCase()}@gmail.com`;
const hashedEmail = hashEmail(email);

const args: MutationLoginArgs = {
data: {
email: null,
Expand Down
2 changes: 1 addition & 1 deletion tests/resolvers/Mutation/removeMember.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe("resolvers -> Mutation -> removeMember", () => {
await import("../../../src/resolvers/Mutation/removeMember");

await removeMemberResolverOrgNotFoundError?.({}, args, context);
} catch (error: unknown) {
} catch {
expect(spy).toHaveBeenCalledWith(ORGANIZATION_NOT_FOUND_ERROR.MESSAGE);
}
});
Expand Down

0 comments on commit 359d762

Please sign in to comment.