Skip to content

Commit

Permalink
remove trust score
Browse files Browse the repository at this point in the history
  • Loading branch information
nickoferrall committed Aug 21, 2023
1 parent 699c1d4 commit d4145e5
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions packages/server/__tests__/inviteToTeam.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,39 +33,3 @@ test('Invite to team, works for ordinary email domain', async () => {
}
})
})

test('Invite to team, deny for untrusted domain', async () => {
const {userId, authToken} = await signUp()
const {email: inviteeEmail} = await signUp()

const teamId = (await getUserTeams(userId))[0].id
const inviteToTeam = await sendPublic({
query: `
mutation InviteToTeam($teamId: ID!, $invitees: [Email!]!) {
inviteToTeam(teamId: $teamId, invitees: $invitees) {
error {
title
message
}
invitees
}
}
`,
variables: {
teamId,
invitees: ['foo@qq.com', inviteeEmail]
},
authToken
})

expect(inviteToTeam).toMatchObject({
data: {
inviteToTeam: {
error: {
message: 'Cannot invite by email. Try using invite link',
title: null
}
}
}
})
})

0 comments on commit d4145e5

Please sign in to comment.