Typos
This commit is contained in:
parent
e416dc6788
commit
53a43ae87d
|
@ -144,10 +144,10 @@
|
||||||
userData = await removingDuplicities({ groups, users })
|
userData = await removingDuplicities({ groups, users })
|
||||||
if (!userData.users.length) return
|
if (!userData.users.length) return
|
||||||
|
|
||||||
return createUser()
|
return createUsers()
|
||||||
}
|
}
|
||||||
|
|
||||||
async function createUser() {
|
async function createUsers() {
|
||||||
try {
|
try {
|
||||||
createUsersResponse = await users.create(
|
createUsersResponse = await users.create(
|
||||||
await removingDuplicities(userData)
|
await removingDuplicities(userData)
|
||||||
|
@ -164,7 +164,7 @@
|
||||||
if (onboardingType === "emailOnboarding") {
|
if (onboardingType === "emailOnboarding") {
|
||||||
createUserFlow()
|
createUserFlow()
|
||||||
} else {
|
} else {
|
||||||
await createUser()
|
await createUsers()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ describe("/api/global/users", () => {
|
||||||
expect(events.user.invited).toBeCalledTimes(1)
|
expect(events.user.invited).toBeCalledTimes(1)
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should be able to generate an invitation for existing user", async () => {
|
it("should not be able to generate an invitation for existing user", async () => {
|
||||||
const { code, res } = await api.users.sendUserInvite(
|
const { code, res } = await api.users.sendUserInvite(
|
||||||
sendMailMock,
|
sendMailMock,
|
||||||
config.defaultUser!.email,
|
config.defaultUser!.email,
|
||||||
|
|
Loading…
Reference in New Issue