test
This commit is contained in:
@@ -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 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user