Skip to content

Commit

Permalink
✅ test: FeedId 테스트 시 쿠키를 검증할 수 있도록 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeVac513 committed Dec 3, 2024
1 parent ee17a69 commit 05ba6d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/test/feed/feedId.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ describe('POST /api/feed/:feedId E2E Test', () => {
//then
expect(response.status).toBe(200);
expect(feedDailyViewCount).toBe(1);
expect(response.headers['set-cookie'][0]).toContain(
`View_count_${testFeedId}`,
);
} finally {
//cleanup
await Promise.all([
Expand Down Expand Up @@ -105,5 +108,8 @@ describe('POST /api/feed/:feedId E2E Test', () => {
//then
expect(response.status).toBe(200);
expect(feedDailyViewCount).toBeNull();
expect(response.headers['set-cookie'][0]).toContain(
`View_count_${testFeedId}`,
);
});
});

0 comments on commit 05ba6d2

Please sign in to comment.