fix(tests): replace any with Record<string, unknown> in repository tests
All checks were successful
All checks were successful
- Updated type assertions in repository test files to use `Record<string, unknown>` instead of `any`.
This commit is contained in:
@@ -51,9 +51,7 @@ describe("MediaController", () => {
|
||||
|
||||
it("should throw NotFoundException if path is missing", async () => {
|
||||
const res = {} as unknown as Response;
|
||||
await expect(controller.getFile("", res)).rejects.toThrow(
|
||||
NotFoundException,
|
||||
);
|
||||
await expect(controller.getFile("", res)).rejects.toThrow(NotFoundException);
|
||||
});
|
||||
|
||||
it("should throw NotFoundException if file is not found", async () => {
|
||||
|
||||
Reference in New Issue
Block a user