fix(tests): replace any with Record<string, unknown> in repository tests
All checks were successful
CI/CD Pipeline / Valider backend (push) Successful in 1m39s
CI/CD Pipeline / Valider frontend (push) Successful in 1m43s
CI/CD Pipeline / Valider documentation (push) Successful in 1m46s
CI/CD Pipeline / Déploiement en Production (push) Successful in 1m32s

- Updated type assertions in repository test files to use `Record<string, unknown>` instead of `any`.
This commit is contained in:
Mathis HERRIOT
2026-01-20 21:42:16 +01:00
parent e7b79013fd
commit 8483927823
5 changed files with 5 additions and 9 deletions

View File

@@ -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 () => {