fix: Allow tests to pass when default is collab (#2685)
This commit is contained in:
@ -35,6 +35,7 @@ describe("teamCreator", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should not allow creating multiple teams in installation", async () => {
|
it("should not allow creating multiple teams in installation", async () => {
|
||||||
|
delete process.env.DEPLOYMENT;
|
||||||
await buildTeam();
|
await buildTeam();
|
||||||
let error;
|
let error;
|
||||||
|
|
||||||
@ -56,6 +57,7 @@ describe("teamCreator", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should return existing team when within allowed domains", async () => {
|
it("should return existing team when within allowed domains", async () => {
|
||||||
|
delete process.env.DEPLOYMENT;
|
||||||
const existing = await buildTeam();
|
const existing = await buildTeam();
|
||||||
|
|
||||||
const result = await teamCreator({
|
const result = await teamCreator({
|
||||||
@ -81,6 +83,8 @@ describe("teamCreator", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should return exising team", async () => {
|
it("should return exising team", async () => {
|
||||||
|
delete process.env.DEPLOYMENT;
|
||||||
|
|
||||||
const authenticationProvider = {
|
const authenticationProvider = {
|
||||||
name: "google",
|
name: "google",
|
||||||
providerId: "example.com",
|
providerId: "example.com",
|
||||||
|
@ -47,6 +47,7 @@ export function buildTeam(overrides: Object = {}) {
|
|||||||
return Team.create(
|
return Team.create(
|
||||||
{
|
{
|
||||||
name: `Team ${count}`,
|
name: `Team ${count}`,
|
||||||
|
collaborativeEditing: false,
|
||||||
authenticationProviders: [
|
authenticationProviders: [
|
||||||
{
|
{
|
||||||
name: "slack",
|
name: "slack",
|
||||||
|
@ -18,6 +18,7 @@ export const seed = async () => {
|
|||||||
const team = await Team.create(
|
const team = await Team.create(
|
||||||
{
|
{
|
||||||
name: "Team",
|
name: "Team",
|
||||||
|
collaborativeEditing: false,
|
||||||
authenticationProviders: [
|
authenticationProviders: [
|
||||||
{
|
{
|
||||||
name: "slack",
|
name: "slack",
|
||||||
|
Reference in New Issue
Block a user