Skip to content

Commit

Permalink
fix test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
eaglethrost committed Nov 4, 2024
1 parent 4ca2b43 commit 431eea3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions backend/src/services/review.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ describe("ReviewService", () => {
reviewId: reviews.reviewId,
zid: reviews.zid,
bookmark: true,
scraped: false
};

const errorResult = new HTTPError(badRequest);
Expand All @@ -158,6 +159,7 @@ describe("ReviewService", () => {
reviewId: reviews[0].reviewId,
zid: reviews[0].zid,
bookmark: true,
scraped: false
};

const errorResult = new HTTPError(badRequest);
Expand All @@ -177,6 +179,7 @@ describe("ReviewService", () => {
reviewId: reviews[0].reviewId,
zid: reviews[0].zid,
bookmark: true,
scraped: false
};

expect(service.bookmarkReview(request)).resolves.toEqual({
Expand All @@ -197,6 +200,7 @@ describe("ReviewService", () => {
reviewId: reviews[0].reviewId,
zid: reviews[0].zid,
bookmark: false,
scraped: false
};
expect(service.bookmarkReview(request)).resolves.toEqual({
review: reviews[0],
Expand Down
2 changes: 0 additions & 2 deletions backend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
"strictPropertyInitialization": false,
"resolveJsonModule": true,
"typeRoots": ["./node_modules/@types"],
"types": ["node"]
},
"include": ["src/**/*", "config/*"],
"exclude": ["src/**/*.test.ts"]
Expand Down

0 comments on commit 431eea3

Please sign in to comment.