fix: Allow tests to pass when default is collab (#2685)
This commit is contained in:
parent
99684d0900
commit
d9f8d2e6d4
|
@ -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",
|
||||
|
|
|
@ -47,6 +47,7 @@ export function buildTeam(overrides: Object = {}) {
|
|||
return Team.create(
|
||||
{
|
||||
name: `Team ${count}`,
|
||||
collaborativeEditing: false,
|
||||
authenticationProviders: [
|
||||
{
|
||||
name: "slack",
|
||||
|
|
|
@ -18,6 +18,7 @@ export const seed = async () => {
|
|||
const team = await Team.create(
|
||||
{
|
||||
name: "Team",
|
||||
collaborativeEditing: false,
|
||||
authenticationProviders: [
|
||||
{
|
||||
name: "slack",
|
||||
|
|
Reference in New Issue