From 55a097d853fc148df9c1e5e323509db155d07bff Mon Sep 17 00:00:00 2001 From: seohyun0120 Date: Sun, 14 Jul 2024 12:30:52 +0900 Subject: [PATCH] =?UTF-8?q?keywords=20=ED=95=84=EB=93=9C=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/meme/patch-meme.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/meme/patch-meme.test.ts b/test/meme/patch-meme.test.ts index 7434843..6bee178 100644 --- a/test/meme/patch-meme.test.ts +++ b/test/meme/patch-meme.test.ts @@ -44,7 +44,8 @@ describe("[PATCH] '/api/meme/:memeId' ", () => { response = await request(app).get(`/api/meme/${testMemeId}`).set('x-device-id', 'deviceId'); expect(response.body.data._id).toBe(memeList[0]._id.toString()); - expect(response.body.data.keywords).toHaveProperty({ _id: keywordIds[1], name: keywords[1] }); + expect(response.body.data.keywords[0]).toHaveProperty('_id'); + expect(response.body.data.keywords[0]).toHaveProperty('name'); expect(response.body.data.isTodayMeme).toBeTruthy(); }); });