Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tommoor committed Sep 21, 2022
1 parent 4f9a99c commit cfabc2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/models/TeamDomain.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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 });

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

Expand Down

0 comments on commit cfabc2e

Please sign in to comment.