Skip to content

Commit

Permalink
chore: update test code
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-won-hyeok committed Feb 29, 2024
1 parent b513247 commit f062af0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
30 changes: 10 additions & 20 deletions backend/apps/admin/src/contest/contest.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ const contest: Contest = {
description: 'description',
startTime,
endTime,
config: {
isVisible: true,
isRankVisible: true
},
isVisible: true,
isRankVisible: true,
createTime,
updateTime
}
Expand All @@ -51,10 +49,8 @@ const contestWithCount = {
description: 'description',
startTime,
endTime,
config: {
isVisible: true,
isRankVisible: true
},
isVisible: true,
isRankVisible: true,
createTime,
updateTime,
// eslint-disable-next-line @typescript-eslint/naming-convention
Expand All @@ -71,10 +67,8 @@ const contestWithParticipants: ContestWithParticipants = {
description: 'description',
startTime,
endTime,
config: {
isVisible: true,
isRankVisible: true
},
isVisible: true,
isRankVisible: true,
createTime,
updateTime,
participants: 10
Expand Down Expand Up @@ -144,10 +138,8 @@ const input = {
description: 'test description',
startTime: faker.date.past(),
endTime: faker.date.future(),
config: {
isVisible: false,
isRankVisible: false
}
isVisible: false,
isRankVisible: false
} satisfies CreateContestInput

const updateInput = {
Expand All @@ -156,10 +148,8 @@ const updateInput = {
description: 'test description',
startTime: faker.date.past(),
endTime: faker.date.future(),
config: {
isVisible: false,
isRankVisible: false
}
isVisible: false,
isRankVisible: false
} satisfies UpdateContestInput

const db = {
Expand Down
6 changes: 2 additions & 4 deletions backend/apps/client/src/contest/contest.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ const contest = {
description: 'description',
startTime: now.add(-1, 'day').toDate(),
endTime: now.add(1, 'day').toDate(),
config: {
isVisible: true,
isRankVisible: true
},
isVisible: true,
isRankVisible: true,
createTime: now.add(-1, 'day').toDate(),
updateTime: now.add(-1, 'day').toDate(),
group: {
Expand Down

0 comments on commit f062af0

Please sign in to comment.