Skip to content

Commit

Permalink
build(deps-dev): bump eslint-plugin-promise from 5.2.0 to 6.1.1 (#50)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump eslint-plugin-promise from 5.2.0 to 6.1.1

Bumps [eslint-plugin-promise](https://github.com/eslint-community/eslint-plugin-promise) from 5.2.0 to 6.1.1.
- [Release notes](https://github.com/eslint-community/eslint-plugin-promise/releases)
- [Changelog](https://github.com/eslint-community/eslint-plugin-promise/blob/main/CHANGELOG.md)
- [Commits](eslint-community/eslint-plugin-promise@v5.2.0...v6.1.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-promise
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: update eslint-config, fix eslint test issues

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Shazron Abdullah <36107+shazron@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and shazron committed Aug 15, 2023
1 parent 75fec43 commit 56ca071
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,14 @@
"jsdoc": {
"ignorePrivate": true
}
},
"rules": {
"jsdoc/tag-lines": [
"error",
"never",
{
"startLines": null
}
]
}
}
6 changes: 3 additions & 3 deletions e2e/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@ const requiredParam = {
entityIdNS: 'email'
}

test('test bad access token', async () => {
test('bad access token', async () => {
const _sdkClient = await sdk.init(tenantId, iMSOrgId, apiKey, 'bad_access_token')
const promise = _sdkClient.getAccessEntities(requiredParam)

// just match the error message
return expect(promise).rejects.toThrow('401')
})

test('test bad api key', async () => {
test('bad api key', async () => {
const _sdkClient = await sdk.init(tenantId, iMSOrgId, 'bad_api_key', accessToken)
const promise = _sdkClient.getAccessEntities(requiredParam)

// just match the error message
return expect(promise).rejects.toThrow('[CustomerProfileAPISDK:ERROR_ENTITIES] Error 403 - Forbidden ({"error_code":"403003","message":"Api Key is invalid"})')
})

test('test getAccessEntities API', async () => {
test('getAccessEntities API', async () => {
// check success response
const res = await sdkClient.getAccessEntities(requiredParam)
expect(res.ok).toBeTruthy()
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"bugs": {
"url": "https://github.com/adobe/aio-lib-customer-profile/issues"
},
"bundleDependencies": false,
"bundleDependencies": [],
"dependencies": {
"@adobe/aio-lib-core-errors": "^3.1.0",
"@adobe/aio-lib-core-logging": "^2.0.0",
Expand All @@ -19,19 +19,20 @@
"uuid": "^9.0.0"
},
"devDependencies": {
"@adobe/eslint-config-aio-lib-config": "^1.4.0",
"@adobe/eslint-config-aio-lib-config": "^2.0.1",
"@types/node-fetch": "^2.5.4",
"babel-runtime": "^6.26.0",
"codecov": "^3.5.0",
"dotenv": "^8.1.0",
"eol": "^0.9.1",
"eslint": "^7.32.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^23.20.0",
"eslint-plugin-jsdoc": "^37.2.0",
"eslint": "^8.47.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-jsdoc": "^42.0.0",
"eslint-plugin-n": "^16.0.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.2.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-standard": "^5.0.0",
"jest": "^29.6.1",
"jest-fetch-mock": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,5 @@ class CustomerProfileAPI extends OpenApi {
}

module.exports = {
init: init
init
}

0 comments on commit 56ca071

Please sign in to comment.