Skip to content

Commit

Permalink
chore: temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RishikeshNK committed Nov 22, 2024
1 parent 37ad32e commit 648d262
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/api/tests/review.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { beforeEach, describe, expect, test, vi } from "vitest";

import type { Session } from "@cooper/auth";
import type { ReviewType } from "@cooper/db/schema";
import { and, eq } from "@cooper/db";
import { and, desc, eq } from "@cooper/db";
import { db } from "@cooper/db/client";
import { Review } from "@cooper/db/schema";

Expand Down Expand Up @@ -52,8 +52,7 @@ describe("Review Router", async () => {
expect(reviews).toEqual(data);

expect(db.query.Review.findMany).toHaveBeenCalledWith({
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
orderBy: expect.anything(),
orderBy: desc(Review.id),
where: undefined,
});
});
Expand Down

0 comments on commit 648d262

Please sign in to comment.