dev #14

Merged
Mathis merged 13 commits from dev into prod 2026-01-20 10:12:18 +01:00
Showing only changes of commit 8b2728dc5a - Show all commits

View File

@@ -197,7 +197,7 @@ describe("S3Service", () => {
it("should use DOMAIN_NAME and PORT for localhost", () => { it("should use DOMAIN_NAME and PORT for localhost", () => {
(configService.get as jest.Mock).mockImplementation( (configService.get as jest.Mock).mockImplementation(
(key: string, def: any) => { (key: string, def: unknown) => {
if (key === "API_URL") return null; if (key === "API_URL") return null;
if (key === "DOMAIN_NAME") return "localhost"; if (key === "DOMAIN_NAME") return "localhost";
if (key === "PORT") return 3000; if (key === "PORT") return 3000;
@@ -210,7 +210,7 @@ describe("S3Service", () => {
it("should use api.DOMAIN_NAME for production", () => { it("should use api.DOMAIN_NAME for production", () => {
(configService.get as jest.Mock).mockImplementation( (configService.get as jest.Mock).mockImplementation(
(key: string, def: any) => { (key: string, def: unknown) => {
if (key === "API_URL") return null; if (key === "API_URL") return null;
if (key === "DOMAIN_NAME") return "memegoat.fr"; if (key === "DOMAIN_NAME") return "memegoat.fr";
return def; return def;