Skip to content

Commit

Permalink
✅ test: 내림차순으로 랭킹 순으로 테스트 결과 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Jo-Minseok committed Nov 20, 2024
1 parent ebfed1c commit f2e18df
Showing 1 changed file with 51 additions and 72 deletions.
123 changes: 51 additions & 72 deletions server/test/feed/trend.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,6 @@ describe('Trend API', () => {
viewCount: 0,
blog: blogs[2],
},
{
id: 5,
title: '제목',
path: 'https://asn6878.tistory.com/12',
createdAt: '2022-09-05T10:00:00.000Z',
thumbnail:
'https://img1.daumcdn.net/thumb/R800x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F2wH52%2FbtsJIskiFgS%2FQlF4XqMVZsM8y51w67dxj1%2Fimg.png',
viewCount: 0,
blog: blogs[2],
},
]);
redisService = app.get(RedisService);
});
Expand Down Expand Up @@ -168,17 +158,6 @@ describe('Trend API', () => {
expect(response.body).toStrictEqual({
message: '트렌드 피드 조회 완료',
data: [
{
id: 1,
author: '안성윤',
title:
'자바스크립트의 구조와 실행 방식 (Ignition, TurboFan, EventLoop)',
path: 'https://asn6878.tistory.com/9',
createdAt: '2022-09-05T09:00:00.000Z',
thumbnail:
'https://img1.daumcdn.net/thumb/R800x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F2wH52%2FbtsJIskiFgS%2FQlF4XqMVZsM8y51w67dxj1%2Fimg.png',
viewCount: 0,
},
{
id: 2,
author: '조민석',
Expand All @@ -190,6 +169,17 @@ describe('Trend API', () => {
'https://velog.velcdn.com/images/seok3765/post/2f863481-b594-46f8-9a28-7799afb58aa4/image.jpg',
viewCount: 0,
},
{
id: 1,
author: '안성윤',
title:
'자바스크립트의 구조와 실행 방식 (Ignition, TurboFan, EventLoop)',
path: 'https://asn6878.tistory.com/9',
createdAt: '2022-09-05T09:00:00.000Z',
thumbnail:
'https://img1.daumcdn.net/thumb/R800x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F2wH52%2FbtsJIskiFgS%2FQlF4XqMVZsM8y51w67dxj1%2Fimg.png',
viewCount: 0,
},
],
});
});
Expand All @@ -207,11 +197,10 @@ describe('Trend API', () => {
message: '트렌드 피드 조회 완료',
data: [
{
id: 1,
author: '안성윤',
title:
'자바스크립트의 구조와 실행 방식 (Ignition, TurboFan, EventLoop)',
path: 'https://asn6878.tistory.com/9',
id: 3,
author: '박무성',
title: '제목',
path: 'https://asn6878.tistory.com/10',
createdAt: '2022-09-05T09:00:00.000Z',
thumbnail:
'https://img1.daumcdn.net/thumb/R800x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F2wH52%2FbtsJIskiFgS%2FQlF4XqMVZsM8y51w67dxj1%2Fimg.png',
Expand All @@ -229,10 +218,11 @@ describe('Trend API', () => {
viewCount: 0,
},
{
id: 3,
author: '박무성',
title: '제목',
path: 'https://asn6878.tistory.com/10',
id: 1,
author: '안성윤',
title:
'자바스크립트의 구조와 실행 방식 (Ignition, TurboFan, EventLoop)',
path: 'https://asn6878.tistory.com/9',
createdAt: '2022-09-05T09:00:00.000Z',
thumbnail:
'https://img1.daumcdn.net/thumb/R800x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F2wH52%2FbtsJIskiFgS%2FQlF4XqMVZsM8y51w67dxj1%2Fimg.png',
Expand All @@ -256,11 +246,20 @@ describe('Trend API', () => {
message: '트렌드 피드 조회 완료',
data: [
{
id: 1,
author: '안성윤',
title:
'자바스크립트의 구조와 실행 방식 (Ignition, TurboFan, EventLoop)',
path: 'https://asn6878.tistory.com/9',
id: 4,
author: '박무성',
title: '제목',
path: 'https://asn6878.tistory.com/11',
createdAt: '2022-09-05T10:00:00.000Z',
thumbnail:
'https://img1.daumcdn.net/thumb/R800x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F2wH52%2FbtsJIskiFgS%2FQlF4XqMVZsM8y51w67dxj1%2Fimg.png',
viewCount: 0,
},
{
id: 3,
author: '박무성',
title: '제목',
path: 'https://asn6878.tistory.com/10',
createdAt: '2022-09-05T09:00:00.000Z',
thumbnail:
'https://img1.daumcdn.net/thumb/R800x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F2wH52%2FbtsJIskiFgS%2FQlF4XqMVZsM8y51w67dxj1%2Fimg.png',
Expand All @@ -278,25 +277,16 @@ describe('Trend API', () => {
viewCount: 0,
},
{
id: 3,
author: '박무성',
title: '제목',
path: 'https://asn6878.tistory.com/10',
id: 1,
author: '안성윤',
title:
'자바스크립트의 구조와 실행 방식 (Ignition, TurboFan, EventLoop)',
path: 'https://asn6878.tistory.com/9',
createdAt: '2022-09-05T09:00:00.000Z',
thumbnail:
'https://img1.daumcdn.net/thumb/R800x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F2wH52%2FbtsJIskiFgS%2FQlF4XqMVZsM8y51w67dxj1%2Fimg.png',
viewCount: 0,
},
{
id: 4,
author: '박무성',
title: '제목',
path: 'https://asn6878.tistory.com/11',
createdAt: '2022-09-05T10:00:00.000Z',
thumbnail:
'https://img1.daumcdn.net/thumb/R800x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F2wH52%2FbtsJIskiFgS%2FQlF4XqMVZsM8y51w67dxj1%2Fimg.png',
viewCount: 0,
},
],
});
});
Expand All @@ -316,27 +306,15 @@ describe('Trend API', () => {
message: '트렌드 피드 조회 완료',
data: [
{
id: 1,
author: '안성윤',
title:
'자바스크립트의 구조와 실행 방식 (Ignition, TurboFan, EventLoop)',
path: 'https://asn6878.tistory.com/9',
createdAt: '2022-09-05T09:00:00.000Z',
id: 4,
author: '박무성',
title: '제목',
path: 'https://asn6878.tistory.com/11',
createdAt: '2022-09-05T10:00:00.000Z',
thumbnail:
'https://img1.daumcdn.net/thumb/R800x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F2wH52%2FbtsJIskiFgS%2FQlF4XqMVZsM8y51w67dxj1%2Fimg.png',
viewCount: 0,
},
{
id: 2,
author: '조민석',
title:
'[네이버 커넥트재단 부스트캠프 웹・모바일 9기] 날 것 그대로 작성하는 챌린지 수료 후기 - Web',
path: 'https://velog.io/@seok3765/%EB%84%A4%EC%9D%B4%EB%B2%84-%EC%BB%A4%EB%84%A5%ED%8A%B8%EC%9E%AC%EB%8B%A8-%EB%B6%80%EC%8A%A4%ED%8A%B8%EC%BA%A0%ED%94%84-%EC%9B%B9%E3%83%BB%EB%AA%A8%EB%B0%94%EC%9D%BC-9%EA%B8%B0-%EB%82%A0-%EA%B2%83-%EA%B7%B8%EB%8C%80%EB%A1%9C-%EC%9E%91%EC%84%B1%ED%95%98%EB%8A%94-%EC%B1%8C%EB%A6%B0%EC%A7%80-%EC%88%98%EB%A3%8C-%ED%9B%84%EA%B8%B0-Web',
createdAt: '2024-08-14T14:07:49.000Z',
thumbnail:
'https://velog.velcdn.com/images/seok3765/post/2f863481-b594-46f8-9a28-7799afb58aa4/image.jpg',
viewCount: 0,
},
{
id: 3,
author: '박무성',
Expand All @@ -348,13 +326,14 @@ describe('Trend API', () => {
viewCount: 0,
},
{
id: 4,
author: '박무성',
title: '제목',
path: 'https://asn6878.tistory.com/11',
createdAt: '2022-09-05T10:00:00.000Z',
id: 2,
author: '조민석',
title:
'[네이버 커넥트재단 부스트캠프 웹・모바일 9기] 날 것 그대로 작성하는 챌린지 수료 후기 - Web',
path: 'https://velog.io/@seok3765/%EB%84%A4%EC%9D%B4%EB%B2%84-%EC%BB%A4%EB%84%A5%ED%8A%B8%EC%9E%AC%EB%8B%A8-%EB%B6%80%EC%8A%A4%ED%8A%B8%EC%BA%A0%ED%94%84-%EC%9B%B9%E3%83%BB%EB%AA%A8%EB%B0%94%EC%9D%BC-9%EA%B8%B0-%EB%82%A0-%EA%B2%83-%EA%B7%B8%EB%8C%80%EB%A1%9C-%EC%9E%91%EC%84%B1%ED%95%98%EB%8A%94-%EC%B1%8C%EB%A6%B0%EC%A7%80-%EC%88%98%EB%A3%8C-%ED%9B%84%EA%B8%B0-Web',
createdAt: '2024-08-14T14:07:49.000Z',
thumbnail:
'https://img1.daumcdn.net/thumb/R800x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F2wH52%2FbtsJIskiFgS%2FQlF4XqMVZsM8y51w67dxj1%2Fimg.png',
'https://velog.velcdn.com/images/seok3765/post/2f863481-b594-46f8-9a28-7799afb58aa4/image.jpg',
viewCount: 0,
},
],
Expand Down

0 comments on commit f2e18df

Please sign in to comment.