From 0f071e926cf14ab39a59147980132951482f6e8a Mon Sep 17 00:00:00 2001 From: minjungw00 Date: Fri, 15 Nov 2024 03:21:21 +0900 Subject: [PATCH] =?UTF-8?q?test:=20bcrypt=20=EB=AA=A8=EB=93=88=EC=9D=84=20?= =?UTF-8?q?ES=20=EB=AA=A8=EB=93=88=EB=A1=9C=20=EC=84=A0=EC=96=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #057 #064 #069 --- server/src/auth/auth.service.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/auth/auth.service.spec.ts b/server/src/auth/auth.service.spec.ts index 720a77a9..b47b291f 100644 --- a/server/src/auth/auth.service.spec.ts +++ b/server/src/auth/auth.service.spec.ts @@ -4,6 +4,7 @@ import { JwtService } from "@nestjs/jwt"; import { getModelToken } from "@nestjs/mongoose"; import { Model } from "mongoose"; import { User, UserDocument } from "./schemas/user.schema"; +import * as bcrypt from "bcrypt"; // Mock modules jest.mock("bcrypt", () => ({ @@ -15,8 +16,6 @@ jest.mock("nanoid", () => ({ nanoid: () => "mockNanoId123", })); -const bcrypt = require("bcrypt"); - describe("AuthService", () => { let service: AuthService; let userModel: Model;