Skip to content

Commit

Permalink
chore(package): update the version to 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelscr committed Sep 23, 2024
1 parent fb2b72e commit f8abe7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ Furthermore, the `installationId` and `sessionToken` parameters were removed, an
```js
// Before
const loginAssessment = await incogniaApi.registerLogin({
installation_id: 'installation_id',
installationId: 'installation_id',
accountId: 'account_id'
})
const webPaymentAssessment = await incogniaApi.registerWebPayment({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@incognia/api",
"author": "Incognia (https://incognia.com)",
"repository": "https://github.com/inloco/incognia-node",
"version": "5.2.0",
"version": "6.0.0",
"license": "MIT",
"type": "module",
"main": "dist/index.cjs",
Expand Down
8 changes: 1 addition & 7 deletions test/incogniaApi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,7 @@ describe('Incognia API', () => {
).rejects.toThrow('Missing required parameter: policyId')
})

it('validates a signup', async () => {
expect(() => incogniaApi.registerSignup({})).rejects.toThrowError(
'No installationId or requestToken provided'
)
})

it('registers signup with installation_id', async () => {
it('registers signup', async () => {
const apiResponse = {
id: '5e76a7ca-577c-4f47-a752-9e1e0cee9e49',
request_id: '8afc84a7-f1d4-488d-bd69-36d9a37168b7',
Expand Down

0 comments on commit f8abe7b

Please sign in to comment.