From c22913d9550c012d0e424376587b10339a1a086d Mon Sep 17 00:00:00 2001 From: Sisyphus Date: Fri, 21 Aug 2026 22:48:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(auth):=20=E7=A7=BB=E9=99=A4=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=B8=AD=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=20token?= =?UTF-8?q?=20=E5=8F=98=E9=87=8F=EF=BC=88Docker=20tsc=20=E4=B8=A5=E6=A0=BC?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- perler-lab-server/src/tests/auth.test.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/perler-lab-server/src/tests/auth.test.ts b/perler-lab-server/src/tests/auth.test.ts index 298d288..7392273 100644 --- a/perler-lab-server/src/tests/auth.test.ts +++ b/perler-lab-server/src/tests/auth.test.ts @@ -57,7 +57,6 @@ describe("POST /api/auth/login", () => { // 先注册一个用户 const phone = "13900139000"; const password = "654321"; - let token = ""; it("注册后登录成功返回 200 + token", async () => { await request(app).post("/api/auth/register").send({ phone, password }); @@ -65,7 +64,6 @@ describe("POST /api/auth/login", () => { expect(res.status).toBe(200); expect(typeof res.body.token).toBe("string"); expect(res.body.user.phone).toBe(phone); - token = res.body.token; }); it("错误密码返回 401", async () => {