Compare commits

...

2 Commits

Author SHA1 Message Date
Tom Moor 039cc8a3b3 0.65.2 2022-07-20 21:19:57 +01:00
Tom Moor e44221ef11 fix: Cannot create new team on self-hosted 2022-07-20 21:19:10 +01:00
3 changed files with 21 additions and 2 deletions
+1 -1
View File
@@ -339,5 +339,5 @@
"js-yaml": "^3.14.1",
"jpeg-js": "0.4.4"
},
"version": "0.65.1"
"version": "0.65.2"
}
+17
View File
@@ -73,6 +73,23 @@ describe("teamCreator", () => {
});
describe("self hosted", () => {
it("should allow creating first team", async () => {
env.DEPLOYMENT = undefined;
const { team, isNewTeam } = await teamCreator({
name: "Test team",
subdomain: "example",
avatarUrl: "http://example.com/logo.png",
authenticationProvider: {
name: "google",
providerId: "example.com",
},
ip,
});
expect(isNewTeam).toBeTruthy();
expect(team.name).toEqual("Test team");
});
it("should not allow creating multiple teams in installation", async () => {
env.DEPLOYMENT = undefined;
await buildTeam();
+3 -1
View File
@@ -78,7 +78,9 @@ async function teamCreator({
}
}
throw MaximumTeamsError();
if (team) {
throw MaximumTeamsError();
}
}
// If the service did not provide a logo/avatar then we attempt to generate