Skip to content

Commit

Permalink
FIXUP: implement tests about find many and count review repository me…
Browse files Browse the repository at this point in the history
…thod
  • Loading branch information
skgndi12 committed Mar 11, 2024
1 parent b352f7a commit cdf8611
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ describe('Test comment repository', () => {
for (let i = 1; i <= commentCount; i++) {
const createdAt = new Date(currentDate.getTime() + i * 1000);

if (i >= 1 && i <= 4) {
if (i <= 4) {
comments.push(
new Comment(
i,
Expand All @@ -197,7 +197,7 @@ describe('Test comment repository', () => {
createdAt
)
);
} else if (i >= 5 && i <= 8) {
} else if (i <= 8) {
comments.push(
new Comment(
i,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ describe('Test review repository', () => {
for (let i = 1; i <= reviewCount; i++) {
const createdAt = new Date(currentDate.getTime() + i * 1000);

if (i >= 1 && i <= 4) {
if (i <= 4) {
reviews.push(
new Review(
i,
Expand All @@ -217,7 +217,7 @@ describe('Test review repository', () => {
createdAt
)
);
} else if (i >= 5 && i <= 8) {
} else if (i <= 8) {
reviews.push(
new Review(
i,
Expand All @@ -230,7 +230,7 @@ describe('Test review repository', () => {
createdAt
)
);
} else if (i >= 9 && i <= 12) {
} else if (i <= 12) {
reviews.push(
new Review(
i,
Expand Down

0 comments on commit cdf8611

Please sign in to comment.