Skip to content

Commit

Permalink
lint error in code cov
Browse files Browse the repository at this point in the history
  • Loading branch information
prayanshchh committed Nov 10, 2024
1 parent fa3a3ab commit be77cba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions tests/resolvers/Mutation/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,10 @@ describe("resolvers -> Mutation -> login", () => {
const { requestContext } = await import("../../../src/libraries");

// Spy on the translate function to capture error messages
const spy = vi
.spyOn(requestContext, "translate")
.mockImplementationOnce((message) => `Translated ${message}`);

try {
const email = `nonexistentuser${nanoid().toLowerCase()}@gmail.com`;
const hashedEmail = hashEmail(email);
const newUser = await User.create({
email: encryptEmail(email),
hashedEmail: hashedEmail,
password: "password",
firstName: "John",
lastName: "Doe",
});

const args: MutationLoginArgs = {
data: {
Expand Down
2 changes: 1 addition & 1 deletion tests/utilities/hashingModule.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, it, expect, vi } from "vitest";
import { describe, it, expect } from "vitest";
import { compareHashedEmails, hashEmail } from "../../src/utilities/hashEmail";
import { setHashPepper } from "../../setup";

Expand Down

0 comments on commit be77cba

Please sign in to comment.