From 3968214c25a65773a84f1dffd2f03d2e587db015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=9E=E5=9C=8B=E5=BF=A0=20/=20Yii=20Kuo=20Chong?= Date: Tue, 3 Sep 2024 18:11:44 +0800 Subject: [PATCH] Update test --- tests/api/event.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/api/event.test.ts b/tests/api/event.test.ts index 75b344b..9a71d87 100644 --- a/tests/api/event.test.ts +++ b/tests/api/event.test.ts @@ -123,10 +123,10 @@ describe('DELETE /api/event/:eventId', () => { }) }) -describe('GET /api/event/:eventId/code', () => { +describe('GET /api/event/:eventId/getCode', () => { it("Should not be able to get event code if event does not exist.", async () => { const response = await request(expressApp) - .get('/api/event/20/code') + .get('/api/event/20/qrCode') .set('Cookie', authCookie) .send() @@ -142,7 +142,7 @@ describe('GET /api/event/:eventId/code', () => { expect(eventCreationResponse.status).toBe(201) const response = await request(expressApp) - .get(`/api/event/${eventCreationResponse.body.data.id}/code`) + .get(`/api/event/${eventCreationResponse.body.data.id}/qrCode`) .set('Cookie', authCookie) .send()