Skip to content

Commit

Permalink
fix: testCode
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyun-git committed Oct 3, 2024
1 parent a9fd14b commit d9e3894
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/meme/post-meme.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ describe("[POST] '/api/meme' ", () => {
keywordIds: [keywordIds[0]],
image: 'https://bucket.s3.com',
source: 'youtube',
watch: 0,
};

const response = await request(app)
Expand Down
1 change: 1 addition & 0 deletions test/util/meme.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const memeMockData = {
source: 'youtube',
isTodayMeme: false,
reaction: 0,
watch: 0,
};

const createMockData = (
Expand Down
5 changes: 5 additions & 0 deletions test/util/meme.search.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const memeMockData = [
image: 'example.com',
isTodayMeme: false,
reaction: 0,
watch: 0,
},
{
deviceId: 'sample_deviceId',
Expand All @@ -23,6 +24,7 @@ const memeMockData = [
image: 'example.com',
isTodayMeme: false,
reaction: 10,
watch: 0,
},
{
deviceId: 'sample_deviceId',
Expand All @@ -32,6 +34,7 @@ const memeMockData = [
image: 'example.com',
isTodayMeme: false,
reaction: 0,
watch: 0,
},
{
deviceId: 'sample_deviceId',
Expand All @@ -41,6 +44,7 @@ const memeMockData = [
image: 'example.com',
isTodayMeme: false,
reaction: 22,
watch: 0,
},
{
deviceId: 'sample_deviceId',
Expand All @@ -50,6 +54,7 @@ const memeMockData = [
image: 'example.com',
isTodayMeme: false,
reaction: 22,
watch: 0,
},
];

Expand Down

0 comments on commit d9e3894

Please sign in to comment.