chore: Remove DEPLOYMENT and SUBDOMAINS_ENABLED (#5742)

This commit is contained in:
Tom Moor
2023-08-28 20:39:58 -04:00
committed by GitHub
parent 7725f29dc7
commit 30a4303a8e
35 changed files with 136 additions and 135 deletions

View File

@@ -1,11 +1,12 @@
import env from "@server/env";
import { buildAdmin, buildTeam } from "@server/test/factories";
import { setupTestDatabase } from "@server/test/support";
import { setCloudHosted, setupTestDatabase } from "@server/test/support";
import TeamDomain from "./TeamDomain";
setupTestDatabase();
describe("team domain model", () => {
beforeEach(setCloudHosted);
describe("create", () => {
it("should allow creation of domains", async () => {
const team = await buildTeam();
@@ -37,7 +38,6 @@ describe("team domain model", () => {
});
it("should not allow creation of domains within restricted list", async () => {
env.DEPLOYMENT = "hosted";
const TeamDomain = await import("./TeamDomain");
const team = await buildTeam();
const user = await buildAdmin({ teamId: team.id });
@@ -57,7 +57,6 @@ describe("team domain model", () => {
});
it("should ignore casing and spaces when creating domains", async () => {
env.DEPLOYMENT = "hosted";
const TeamDomain = await import("./TeamDomain");
const team = await buildTeam();
const user = await buildAdmin({ teamId: team.id });