Skip to content

Commit

Permalink
fix: resolve eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeressian committed Dec 22, 2024
1 parent 81a6043 commit 44049ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/uploader.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ describe("Uploader", () => {
warning: () => null,
}));
beforeEach(() => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
uploadFileMethod = (Uploader as any).prototype.uploadFile;
});
it("should make fetch request", async () => {
Expand Down Expand Up @@ -131,7 +132,7 @@ describe("Uploader", () => {
{ path: "Test", fullPath: "Test", basename: "Test" }
)
// eslint-disable-next-line @typescript-eslint/no-empty-function
.catch((err) => {});
.catch(() => {});
timeoutSpy.mockRestore();

expect(fetchMock).toHaveBeenCalledTimes(5);
Expand Down

0 comments on commit 44049ef

Please sign in to comment.