Skip to content

Commit

Permalink
fix: warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gairal committed Aug 9, 2024
1 parent 56debbf commit 1ab446d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
},
"javascript": {
"globals": ["afterAll", "beforeAll", "describe", "expect", "it"]
"globals": ["afterEach", "describe", "expect", "it", "test", "jest"]
},
"overrides": [
{
Expand Down
3 changes: 2 additions & 1 deletion src/__tests__/error.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import request from "supertest";

import { app } from "../app";
// biome-ignore lint/style/noNamespaceImport: exception
import * as educationModel from "../model/education";

const subject = async (path: string) => request(app.callback()).get(path);
Expand All @@ -15,7 +16,7 @@ describe("error", () => {
test("returns a 500 status on error", async () => {
jest
.spyOn(educationModel, "getAll")
.mockRejectedValueOnce(Error("NETWORK_ERROR"));
.mockRejectedValueOnce(new Error("NETWORK_ERROR"));

const { body, status } = await subject("/educations");

Expand Down

0 comments on commit 1ab446d

Please sign in to comment.