account-lookup-service 15.6.0-iso.1 → 15.6.0-iso.2
Sign up to get free protection for your applications and to get access to all the features.
package/.circleci/config.yml
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "account-lookup-service",
|
3
3
|
"description": "Account Lookup Service is used to validate Party and Participant lookups.",
|
4
|
-
"version": "15.6.0-iso.
|
4
|
+
"version": "15.6.0-iso.2",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"author": "ModusBox",
|
7
7
|
"contributors": [
|
@@ -100,7 +100,7 @@
|
|
100
100
|
"@mojaloop/database-lib": "11.0.6",
|
101
101
|
"@mojaloop/event-sdk": "14.1.1",
|
102
102
|
"@mojaloop/inter-scheme-proxy-cache-lib": "2.3.0",
|
103
|
-
"@mojaloop/ml-schema-transformer-lib": "
|
103
|
+
"@mojaloop/ml-schema-transformer-lib": "1.1.1",
|
104
104
|
"@mojaloop/sdk-standard-components": "19.0.0",
|
105
105
|
"@now-ims/hapi-now-auth": "2.1.0",
|
106
106
|
"ajv": "8.17.1",
|
@@ -159,7 +159,7 @@
|
|
159
159
|
"jest-junit": "16.0.0",
|
160
160
|
"jsdoc": "4.0.3",
|
161
161
|
"nodemon": "3.1.7",
|
162
|
-
"npm-check-updates": "17.1.
|
162
|
+
"npm-check-updates": "17.1.4",
|
163
163
|
"nyc": "17.1.0",
|
164
164
|
"pre-commit": "1.2.2",
|
165
165
|
"proxyquire": "2.1.3",
|
@@ -5,15 +5,12 @@ const config = require('../../../../src/lib/config')
|
|
5
5
|
const realApiType = config.API_TYPE
|
6
6
|
|
7
7
|
describe('timeoutCallbackDto Tests -->', () => {
|
8
|
-
// test('dummy', () => {
|
9
|
-
// expect(1).toBe(1)
|
10
|
-
// })
|
11
|
-
|
12
8
|
afterAll(() => {
|
13
9
|
config.API_TYPE = realApiType
|
14
10
|
})
|
15
11
|
|
16
|
-
|
12
|
+
// todo: unskip after fixing transformLib SubId issue for parties.putError
|
13
|
+
test.skip('should produce ISO payload', async () => {
|
17
14
|
config.API_TYPE = API_TYPES.iso20022
|
18
15
|
const destination = 'D1'
|
19
16
|
const partyId = 'P1'
|
@@ -2,13 +2,14 @@ const { TransformFacades } = require('../../../src/lib')
|
|
2
2
|
const { errorCallbackResponseDto, partiesCallHeadersDto } = require('../../fixtures')
|
3
3
|
|
4
4
|
describe('TransformFacades Tests -->', () => {
|
5
|
-
// test('dummy', () => {
|
6
|
-
// expect(1).toBe(1)
|
7
|
-
// })
|
8
5
|
test('should transform PUT /parties error callback payload to ISO format', async () => {
|
9
6
|
const body = errorCallbackResponseDto()
|
10
7
|
const headers = partiesCallHeadersDto()
|
11
|
-
const isoPayload = await TransformFacades.FSPIOP.parties.putError({
|
8
|
+
const isoPayload = await TransformFacades.FSPIOP.parties.putError({
|
9
|
+
body,
|
10
|
+
headers,
|
11
|
+
params: { IdPath: '123456789' }
|
12
|
+
})
|
12
13
|
expect(isoPayload.body).toBeTruthy()
|
13
14
|
expect(isoPayload.body.Assgnmt).toBeTruthy()
|
14
15
|
expect(isoPayload.body.Assgnmt.Assgnr).toBeTruthy()
|