Skip to content

Commit

Permalink
update tests and example
Browse files Browse the repository at this point in the history
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
  • Loading branch information
ianmuchyri committed Oct 25, 2024
1 parent a1638c4 commit 145791d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/invitations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ const domainId = '<domainId>'
mySdk.invitations.SendInvitation(
{
user_id: '<userID>',
domain_id: '<domainID>',
domain_id: domainId,
relation: 'administrator'
},
domainId,
token
)
.then((response: any) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/invitations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('Invitations', () => {
}
fetchMock.mockResponseOnce(JSON.stringify(SendInvitationResponse))

const response = await sdk.invitations.SendInvitation(invitation, domainId, token)
const response = await sdk.invitations.SendInvitation(invitation, token)
expect(response).toEqual(SendInvitationResponse)
})

Expand Down

0 comments on commit 145791d

Please sign in to comment.