mirror of
https://github.com/outline/outline.git
synced 2026-11-21 05:24:03 +03:00
test
This commit is contained in:
1 parent
4f9a99c9b4
commit
cfabc2e8a0
1 file changed
+5
@@ -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