Skip to content

Commit

Permalink
keywords 필드 테스트 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seohyun0120 committed Jul 14, 2024
1 parent 97d892c commit 55a097d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/meme/patch-meme.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});

0 comments on commit 55a097d

Please sign in to comment.