fix: Allow tests to pass when default is collab (#2685)

This commit is contained in:
Tom Moor 2021-10-23 16:02:25 -07:00 committed by GitHub
parent 99684d0900
commit d9f8d2e6d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,7 @@ describe("teamCreator", () => {
});
it("should not allow creating multiple teams in installation", async () => {
delete process.env.DEPLOYMENT;
await buildTeam();
let error;
@ -56,6 +57,7 @@ describe("teamCreator", () => {
});
it("should return existing team when within allowed domains", async () => {
delete process.env.DEPLOYMENT;
const existing = await buildTeam();
const result = await teamCreator({
@ -81,6 +83,8 @@ describe("teamCreator", () => {
});
it("should return exising team", async () => {
delete process.env.DEPLOYMENT;
const authenticationProvider = {
name: "google",
providerId: "example.com",

View File

@ -47,6 +47,7 @@ export function buildTeam(overrides: Object = {}) {
return Team.create(
{
name: `Team ${count}`,
collaborativeEditing: false,
authenticationProviders: [
{
name: "slack",

View File

@ -18,6 +18,7 @@ export const seed = async () => {
const team = await Team.create(
{
name: "Team",
collaborativeEditing: false,
authenticationProviders: [
{
name: "slack",