From cfabc2e8a0b830ece507cf3ad493356aa105bfa1 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 21 Sep 2022 09:39:39 -0400 Subject: [PATCH] test --- server/models/TeamDomain.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/models/TeamDomain.test.ts b/server/models/TeamDomain.test.ts index a58f3ba0df35..ceefb38e378c 100644 --- a/server/models/TeamDomain.test.ts +++ b/server/models/TeamDomain.test.ts @@ -1,3 +1,4 @@ +import env from "@server/env"; import { buildAdmin, buildTeam } from "@server/test/factories"; import { getTestDatabase } from "@server/test/support"; import TeamDomain from "./TeamDomain"; @@ -43,6 +44,8 @@ describe("team domain model", () => { }); it("should not allow creation of domains within restricted list", async () => { + env.DEPLOYMENT = "hosted"; + const TeamDomain = import("./TeamDomain"); const team = await buildTeam(); const user = await buildAdmin({ teamId: team.id }); @@ -60,6 +63,8 @@ describe("team domain model", () => { }); it("should ignore casing and spaces when creating domains", async () => { + env.DEPLOYMENT = "hosted"; + const TeamDomain = import("./TeamDomain"); const team = await buildTeam(); const user = await buildAdmin({ teamId: team.id });