This commit is contained in:
Tom Moor
2022-09-21 09:39:39 -04:00
parent 4f9a99c9b4
commit cfabc2e8a0

View File

@@ -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 });