@mojaloop/ml-testing-toolkit-shared-lib 12.2.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ncurc.yaml +6 -0
- package/.nvmrc +1 -0
- package/CHANGELOG.md +16 -0
- package/CODEOWNERS +30 -0
- package/README.md +41 -0
- package/audit-ci.jsonc +10 -0
- package/package.json +40 -29
- package/src/lib/testcase-folder/folder-parser.js +5 -4
- package/.circleci/config.yml +0 -301
- package/audit-resolve.json +0 -198
- package/test/samples/api_spec_async.yaml +0 -2157
- package/test/samples/api_spec_sync.yaml +0 -529
- package/test/samples/api_spec_sync_empty.yaml +0 -7
- package/test/unit/index.test.js +0 -44
- package/test/unit/lib/openApiMockGenerator.test.js +0 -138
- package/test/unit/lib/testcase-folder/folder-parser.test.js +0 -502
- package/test/unit/lib/traceHeaderUtils.test.js +0 -91
|
@@ -1,529 +0,0 @@
|
|
|
1
|
-
openapi: 3.0.1
|
|
2
|
-
info:
|
|
3
|
-
title: MOJALOOP Central Settlements
|
|
4
|
-
description: Mojaloop API for Settlements.
|
|
5
|
-
version: 1.1.0
|
|
6
|
-
servers:
|
|
7
|
-
- url: /v1
|
|
8
|
-
paths:
|
|
9
|
-
/settlementWindows:
|
|
10
|
-
get:
|
|
11
|
-
tags:
|
|
12
|
-
- getSettlementWindowsByParams
|
|
13
|
-
summary: getSettlementWindowsByParams
|
|
14
|
-
description: Returns Settlement Windows as per parameter(s).
|
|
15
|
-
parameters:
|
|
16
|
-
- name: participantId
|
|
17
|
-
in: query
|
|
18
|
-
description: |
|
|
19
|
-
A valid participant Id to filter on.
|
|
20
|
-
schema:
|
|
21
|
-
type: integer
|
|
22
|
-
- name: state
|
|
23
|
-
in: query
|
|
24
|
-
description: |
|
|
25
|
-
A settlement window state to filter on.
|
|
26
|
-
schema:
|
|
27
|
-
type: string
|
|
28
|
-
enum:
|
|
29
|
-
- OPEN
|
|
30
|
-
- CLOSED
|
|
31
|
-
- PENDING_SETTLEMENT
|
|
32
|
-
- SETTLED
|
|
33
|
-
- ABORTED
|
|
34
|
-
- name: fromDateTime
|
|
35
|
-
in: query
|
|
36
|
-
description: |
|
|
37
|
-
The start date for query (relates to central-ledger.settlementWindow.createdDate). Can be used together with `toDateTime'. eg 2017-07-20T17:32:28Z
|
|
38
|
-
schema:
|
|
39
|
-
type: string
|
|
40
|
-
format: date-time
|
|
41
|
-
- name: toDateTime
|
|
42
|
-
in: query
|
|
43
|
-
description: |
|
|
44
|
-
The end date for query (relates to central-ledger.settlementWindow.createdDate). Can be used together with `fromDateTime'. eg 2017-07-21T17:32:28Z
|
|
45
|
-
schema:
|
|
46
|
-
type: string
|
|
47
|
-
format: date-time
|
|
48
|
-
responses:
|
|
49
|
-
400:
|
|
50
|
-
description: Bad request.
|
|
51
|
-
content:
|
|
52
|
-
application/json:
|
|
53
|
-
schema:
|
|
54
|
-
$ref: '#/components/schemas/Error'
|
|
55
|
-
401:
|
|
56
|
-
description: Authorisation information is missing or invalid.
|
|
57
|
-
content:
|
|
58
|
-
application/json:
|
|
59
|
-
schema:
|
|
60
|
-
$ref: '#/components/schemas/Error'
|
|
61
|
-
404:
|
|
62
|
-
description: No data found.
|
|
63
|
-
content:
|
|
64
|
-
application/json:
|
|
65
|
-
schema:
|
|
66
|
-
$ref: '#/components/schemas/Error'
|
|
67
|
-
415:
|
|
68
|
-
description: Unsupported Media Type.
|
|
69
|
-
content:
|
|
70
|
-
application/json:
|
|
71
|
-
schema:
|
|
72
|
-
$ref: '#/components/schemas/Error'
|
|
73
|
-
default:
|
|
74
|
-
description: Unexpected error
|
|
75
|
-
content:
|
|
76
|
-
application/json:
|
|
77
|
-
schema:
|
|
78
|
-
$ref: '#/components/schemas/Error'
|
|
79
|
-
deprecated: false
|
|
80
|
-
/settlementWindows/{id}:
|
|
81
|
-
get:
|
|
82
|
-
tags:
|
|
83
|
-
- getSettlementWindowById
|
|
84
|
-
summary: getSettlementWindowById
|
|
85
|
-
description: Returns a Settlement Window by id.
|
|
86
|
-
operationId: getSettlementWindowById
|
|
87
|
-
parameters:
|
|
88
|
-
- name: id
|
|
89
|
-
in: path
|
|
90
|
-
description: |
|
|
91
|
-
A valid settlement window id to be supplied in the query.
|
|
92
|
-
required: true
|
|
93
|
-
schema:
|
|
94
|
-
type: integer
|
|
95
|
-
responses:
|
|
96
|
-
200:
|
|
97
|
-
description: A settlement window's data returned.
|
|
98
|
-
content:
|
|
99
|
-
application/json:
|
|
100
|
-
schema:
|
|
101
|
-
$ref: '#/components/schemas/SettlementWindow'
|
|
102
|
-
400:
|
|
103
|
-
description: Bad request.
|
|
104
|
-
content:
|
|
105
|
-
application/json:
|
|
106
|
-
schema:
|
|
107
|
-
$ref: '#/components/schemas/Error'
|
|
108
|
-
401:
|
|
109
|
-
description: Authorisation information is missing or invalid.
|
|
110
|
-
content:
|
|
111
|
-
application/json:
|
|
112
|
-
schema:
|
|
113
|
-
$ref: '#/components/schemas/Error'
|
|
114
|
-
404:
|
|
115
|
-
description: No data found.
|
|
116
|
-
content:
|
|
117
|
-
application/json:
|
|
118
|
-
schema:
|
|
119
|
-
$ref: '#/components/schemas/Error'
|
|
120
|
-
415:
|
|
121
|
-
description: Unsupported Media Type
|
|
122
|
-
content:
|
|
123
|
-
application/json:
|
|
124
|
-
schema:
|
|
125
|
-
$ref: '#/components/schemas/Error'
|
|
126
|
-
default:
|
|
127
|
-
description: Unexpected error
|
|
128
|
-
content:
|
|
129
|
-
application/json:
|
|
130
|
-
schema:
|
|
131
|
-
$ref: '#/components/schemas/Error'
|
|
132
|
-
deprecated: false
|
|
133
|
-
/settlements:
|
|
134
|
-
get:
|
|
135
|
-
tags:
|
|
136
|
-
- getSettlementsByParams
|
|
137
|
-
summary: getSettlementsByParams
|
|
138
|
-
description: Returns Settlements as per parameter(s).
|
|
139
|
-
operationId: getSettlementsByParams
|
|
140
|
-
parameters:
|
|
141
|
-
- name: currency
|
|
142
|
-
in: query
|
|
143
|
-
description: |
|
|
144
|
-
A valid currency to filter on.
|
|
145
|
-
schema:
|
|
146
|
-
type: string
|
|
147
|
-
- name: participantId
|
|
148
|
-
in: query
|
|
149
|
-
description: |
|
|
150
|
-
A valid participant Id to filter on.
|
|
151
|
-
schema:
|
|
152
|
-
type: integer
|
|
153
|
-
- name: settlementWindowId
|
|
154
|
-
in: query
|
|
155
|
-
description: |
|
|
156
|
-
A valid Settlement Window Id to filter on.
|
|
157
|
-
schema:
|
|
158
|
-
type: number
|
|
159
|
-
- name: accountId
|
|
160
|
-
in: query
|
|
161
|
-
description: |
|
|
162
|
-
A valid Account Id to filter on.
|
|
163
|
-
schema:
|
|
164
|
-
type: number
|
|
165
|
-
- name: state
|
|
166
|
-
in: query
|
|
167
|
-
description: "A settlement state to filter on. \n"
|
|
168
|
-
schema:
|
|
169
|
-
type: string
|
|
170
|
-
enum:
|
|
171
|
-
- PENDING_SETTLEMENT
|
|
172
|
-
- PS_TRANSFERS_RECORDED
|
|
173
|
-
- PS_TRANSFERS_RESERVED
|
|
174
|
-
- PS_TRANSFERS_COMMITTED
|
|
175
|
-
- SETTLING
|
|
176
|
-
- SETTLED
|
|
177
|
-
- ABORTED
|
|
178
|
-
- name: fromDateTime
|
|
179
|
-
in: query
|
|
180
|
-
description: |
|
|
181
|
-
The start date for query (relates to central-ledger.settlement.createdDate). Can be used together with `toDateTime'. eg 2017-07-20T17:32:28Z
|
|
182
|
-
schema:
|
|
183
|
-
type: string
|
|
184
|
-
format: date-time
|
|
185
|
-
- name: toDateTime
|
|
186
|
-
in: query
|
|
187
|
-
description: |
|
|
188
|
-
The end date for query (relates to central-ledger.settlement.createdDate). Can be used together with `fromDateTime'. eg 2017-07-21T17:32:28Z
|
|
189
|
-
schema:
|
|
190
|
-
type: string
|
|
191
|
-
format: date-time
|
|
192
|
-
- name: fromSettlementWindowDateTime
|
|
193
|
-
in: query
|
|
194
|
-
description: |
|
|
195
|
-
The start date for query (relates to central-ledger.settlementWindow.createdDate). Can be used together with `toDateTime'. eg 2017-07-20T17:32:28Z
|
|
196
|
-
schema:
|
|
197
|
-
type: string
|
|
198
|
-
format: date-time
|
|
199
|
-
- name: toSettlementWindowDateTime
|
|
200
|
-
in: query
|
|
201
|
-
description: |
|
|
202
|
-
The end date for query (relates to central-ledger.settlementWindow.createdDate). Can be used together with `fromDateTime'. eg 2017-07-21T17:32:28Z
|
|
203
|
-
schema:
|
|
204
|
-
type: string
|
|
205
|
-
format: date-time
|
|
206
|
-
responses:
|
|
207
|
-
100:
|
|
208
|
-
description: Settlement window(s) returned by the filtering parameters.
|
|
209
|
-
content:
|
|
210
|
-
application/json:
|
|
211
|
-
schema:
|
|
212
|
-
$ref: '#/components/schemas/Settlements'
|
|
213
|
-
200:
|
|
214
|
-
description: Settlement window(s) returned by the filtering parameters.
|
|
215
|
-
content:
|
|
216
|
-
application/json:
|
|
217
|
-
schema:
|
|
218
|
-
$ref: '#/components/schemas/Settlements'
|
|
219
|
-
400:
|
|
220
|
-
description: Bad request.
|
|
221
|
-
content:
|
|
222
|
-
application/json:
|
|
223
|
-
schema:
|
|
224
|
-
$ref: '#/components/schemas/Error'
|
|
225
|
-
401:
|
|
226
|
-
description: Authorisation information is missing or invalid.
|
|
227
|
-
content:
|
|
228
|
-
application/json:
|
|
229
|
-
schema:
|
|
230
|
-
$ref: '#/components/schemas/Error'
|
|
231
|
-
404:
|
|
232
|
-
description: No data found.
|
|
233
|
-
content:
|
|
234
|
-
application/json:
|
|
235
|
-
schema:
|
|
236
|
-
$ref: '#/components/schemas/Error'
|
|
237
|
-
415:
|
|
238
|
-
description: Unsupported Media Type.
|
|
239
|
-
content:
|
|
240
|
-
application/json:
|
|
241
|
-
schema:
|
|
242
|
-
$ref: '#/components/schemas/Error'
|
|
243
|
-
default:
|
|
244
|
-
description: Unexpected error
|
|
245
|
-
content:
|
|
246
|
-
application/json:
|
|
247
|
-
schema:
|
|
248
|
-
$ref: '#/components/schemas/Error'
|
|
249
|
-
deprecated: false
|
|
250
|
-
post:
|
|
251
|
-
tags:
|
|
252
|
-
- createSettlement
|
|
253
|
-
summary: createSettlement
|
|
254
|
-
description: Trigger the creation of a settlement, that does the calculation
|
|
255
|
-
of the net settlement position per participant and marks all transfers in
|
|
256
|
-
the affected windows as PENDING_SETTLEMENT. Returned dataset is the net settlement
|
|
257
|
-
report for the settlementWindow
|
|
258
|
-
operationId: createSettlement
|
|
259
|
-
requestBody:
|
|
260
|
-
description: A JSON object containing settlement windows to be included.
|
|
261
|
-
content:
|
|
262
|
-
application/json:
|
|
263
|
-
schema:
|
|
264
|
-
$ref: '#/components/schemas/SettlementEventPayload'
|
|
265
|
-
required: true
|
|
266
|
-
responses:
|
|
267
|
-
200:
|
|
268
|
-
description: Created settlement with all windows and accounts.
|
|
269
|
-
content:
|
|
270
|
-
application/json:
|
|
271
|
-
schema:
|
|
272
|
-
$ref: '#/components/schemas/Settlement'
|
|
273
|
-
400:
|
|
274
|
-
description: Bad request.
|
|
275
|
-
content:
|
|
276
|
-
application/json:
|
|
277
|
-
schema:
|
|
278
|
-
$ref: '#/components/schemas/Error'
|
|
279
|
-
401:
|
|
280
|
-
description: Authorisation information is missing or invalid.
|
|
281
|
-
content:
|
|
282
|
-
application/json:
|
|
283
|
-
schema:
|
|
284
|
-
$ref: '#/components/schemas/Error'
|
|
285
|
-
404:
|
|
286
|
-
description: No data found.
|
|
287
|
-
content:
|
|
288
|
-
application/json:
|
|
289
|
-
schema:
|
|
290
|
-
$ref: '#/components/schemas/Error'
|
|
291
|
-
415:
|
|
292
|
-
description: Unsupported Media Type.
|
|
293
|
-
content:
|
|
294
|
-
application/json:
|
|
295
|
-
schema:
|
|
296
|
-
$ref: '#/components/schemas/Error'
|
|
297
|
-
default:
|
|
298
|
-
description: Unexpected error
|
|
299
|
-
content:
|
|
300
|
-
application/json:
|
|
301
|
-
schema:
|
|
302
|
-
$ref: '#/components/schemas/Error'
|
|
303
|
-
deprecated: false
|
|
304
|
-
x-codegen-request-body-name: payload
|
|
305
|
-
components:
|
|
306
|
-
schemas:
|
|
307
|
-
Account:
|
|
308
|
-
type: object
|
|
309
|
-
properties:
|
|
310
|
-
id:
|
|
311
|
-
type: string
|
|
312
|
-
description: Account Id
|
|
313
|
-
reason:
|
|
314
|
-
type: string
|
|
315
|
-
description: TBD
|
|
316
|
-
state:
|
|
317
|
-
type: string
|
|
318
|
-
example: PENDING_SETTLEMENT
|
|
319
|
-
netSettlementAmount:
|
|
320
|
-
$ref: '#/components/schemas/netSettlementAmount'
|
|
321
|
-
SettlementUpdateBySettlementIdPayload:
|
|
322
|
-
type: object
|
|
323
|
-
properties:
|
|
324
|
-
state:
|
|
325
|
-
type: string
|
|
326
|
-
enum:
|
|
327
|
-
- ABORTED
|
|
328
|
-
- INVALID
|
|
329
|
-
reason:
|
|
330
|
-
type: string
|
|
331
|
-
externalReference:
|
|
332
|
-
type: string
|
|
333
|
-
participants:
|
|
334
|
-
type: array
|
|
335
|
-
items:
|
|
336
|
-
$ref: '#/components/schemas/SettlementUpdateBySettlementIDOuterPayload'
|
|
337
|
-
SettlementUpdateBySettlementIDOuterPayload:
|
|
338
|
-
type: object
|
|
339
|
-
properties:
|
|
340
|
-
id:
|
|
341
|
-
type: integer
|
|
342
|
-
description: Participant Id
|
|
343
|
-
accounts:
|
|
344
|
-
type: array
|
|
345
|
-
items:
|
|
346
|
-
$ref: '#/components/schemas/SettlementUpdateBySettlementIdInnerPayload'
|
|
347
|
-
SettlementUpdateBySettlementIdInnerPayload:
|
|
348
|
-
type: object
|
|
349
|
-
properties:
|
|
350
|
-
id:
|
|
351
|
-
type: integer
|
|
352
|
-
description: Participant Currency Id
|
|
353
|
-
reason:
|
|
354
|
-
type: string
|
|
355
|
-
example: reason
|
|
356
|
-
state:
|
|
357
|
-
type: string
|
|
358
|
-
example: SETTLED
|
|
359
|
-
enum:
|
|
360
|
-
- PENDING_SETTLEMENT
|
|
361
|
-
- PS_TRANSFERS_RECORDED
|
|
362
|
-
- PS_TRANSFERS_RESERVED
|
|
363
|
-
- PS_TRANSFERS_COMMITTED
|
|
364
|
-
- SETTLED
|
|
365
|
-
externalReference:
|
|
366
|
-
type: string
|
|
367
|
-
example: external-reference-abc123
|
|
368
|
-
SettlementUpdateBySettlementParticipantPayload:
|
|
369
|
-
type: object
|
|
370
|
-
properties:
|
|
371
|
-
accounts:
|
|
372
|
-
type: array
|
|
373
|
-
items:
|
|
374
|
-
$ref: '#/components/schemas/SettlementUpdateBySettlementIdInnerPayload'
|
|
375
|
-
Accounts:
|
|
376
|
-
type: object
|
|
377
|
-
properties:
|
|
378
|
-
id:
|
|
379
|
-
type: integer
|
|
380
|
-
description: Participant Currency Id
|
|
381
|
-
reason:
|
|
382
|
-
type: string
|
|
383
|
-
description: TBD
|
|
384
|
-
state:
|
|
385
|
-
type: string
|
|
386
|
-
example: PENDING_SETTLEMENT
|
|
387
|
-
netSettlementAmount:
|
|
388
|
-
$ref: '#/components/schemas/netSettlementAmount'
|
|
389
|
-
SettlementWindowClosurePayload:
|
|
390
|
-
required:
|
|
391
|
-
- reason
|
|
392
|
-
- state
|
|
393
|
-
type: object
|
|
394
|
-
properties:
|
|
395
|
-
state:
|
|
396
|
-
type: string
|
|
397
|
-
example: CLOSED
|
|
398
|
-
enum:
|
|
399
|
-
- CLOSED
|
|
400
|
-
reason:
|
|
401
|
-
type: string
|
|
402
|
-
example: string
|
|
403
|
-
SettlementUpdateBySettlementParticipantAccount:
|
|
404
|
-
required:
|
|
405
|
-
- reason
|
|
406
|
-
- state
|
|
407
|
-
type: object
|
|
408
|
-
properties:
|
|
409
|
-
state:
|
|
410
|
-
type: string
|
|
411
|
-
example: SETTLED
|
|
412
|
-
enum:
|
|
413
|
-
- PENDING_SETTLEMENT
|
|
414
|
-
- PS_TRANSFERS_RECORDED
|
|
415
|
-
- PS_TRANSFERS_RESERVED
|
|
416
|
-
- PS_TRANSFERS_COMMITTED
|
|
417
|
-
- SETTLED
|
|
418
|
-
reason:
|
|
419
|
-
type: string
|
|
420
|
-
example: string
|
|
421
|
-
externalReference:
|
|
422
|
-
type: string
|
|
423
|
-
example: external-reference-abc123
|
|
424
|
-
SettlementEventPayload:
|
|
425
|
-
required:
|
|
426
|
-
- reason
|
|
427
|
-
- settlementWindows
|
|
428
|
-
type: object
|
|
429
|
-
properties:
|
|
430
|
-
reason:
|
|
431
|
-
type: string
|
|
432
|
-
settlementWindows:
|
|
433
|
-
minItems: 1
|
|
434
|
-
uniqueItems: true
|
|
435
|
-
type: array
|
|
436
|
-
items:
|
|
437
|
-
$ref: '#/components/schemas/SettlementWindowId'
|
|
438
|
-
SettlementWindowId:
|
|
439
|
-
required:
|
|
440
|
-
- id
|
|
441
|
-
type: object
|
|
442
|
-
properties:
|
|
443
|
-
id:
|
|
444
|
-
type: integer
|
|
445
|
-
SettlementWindow:
|
|
446
|
-
required:
|
|
447
|
-
- createdDate
|
|
448
|
-
- id
|
|
449
|
-
- state
|
|
450
|
-
type: object
|
|
451
|
-
properties:
|
|
452
|
-
id:
|
|
453
|
-
type: integer
|
|
454
|
-
reason:
|
|
455
|
-
type: string
|
|
456
|
-
state:
|
|
457
|
-
type: string
|
|
458
|
-
createdDate:
|
|
459
|
-
type: string
|
|
460
|
-
changedDate:
|
|
461
|
-
type: string
|
|
462
|
-
SettlementWindows:
|
|
463
|
-
type: array
|
|
464
|
-
items:
|
|
465
|
-
$ref: '#/components/schemas/SettlementWindow'
|
|
466
|
-
netSettlementAmount:
|
|
467
|
-
type: object
|
|
468
|
-
properties:
|
|
469
|
-
amount:
|
|
470
|
-
type: number
|
|
471
|
-
currency:
|
|
472
|
-
type: string
|
|
473
|
-
Participant:
|
|
474
|
-
type: object
|
|
475
|
-
properties:
|
|
476
|
-
id:
|
|
477
|
-
type: integer
|
|
478
|
-
accounts:
|
|
479
|
-
type: array
|
|
480
|
-
items:
|
|
481
|
-
$ref: '#/components/schemas/Accounts'
|
|
482
|
-
Settlements:
|
|
483
|
-
type: array
|
|
484
|
-
items:
|
|
485
|
-
$ref: '#/components/schemas/Settlement'
|
|
486
|
-
Settlement:
|
|
487
|
-
type: object
|
|
488
|
-
properties:
|
|
489
|
-
id:
|
|
490
|
-
type: integer
|
|
491
|
-
state:
|
|
492
|
-
type: string
|
|
493
|
-
settlementWindows:
|
|
494
|
-
type: array
|
|
495
|
-
items:
|
|
496
|
-
$ref: '#/components/schemas/SettlementWindows'
|
|
497
|
-
participants:
|
|
498
|
-
type: array
|
|
499
|
-
items:
|
|
500
|
-
$ref: '#/components/schemas/Participant'
|
|
501
|
-
Error:
|
|
502
|
-
required:
|
|
503
|
-
- errorInformation
|
|
504
|
-
type: object
|
|
505
|
-
properties:
|
|
506
|
-
errorInformation:
|
|
507
|
-
type: object
|
|
508
|
-
properties:
|
|
509
|
-
errorCode:
|
|
510
|
-
type: integer
|
|
511
|
-
errorDescription:
|
|
512
|
-
type: string
|
|
513
|
-
extensionList:
|
|
514
|
-
type: object
|
|
515
|
-
properties:
|
|
516
|
-
extension:
|
|
517
|
-
type: array
|
|
518
|
-
items:
|
|
519
|
-
$ref: '#/components/schemas/Extension'
|
|
520
|
-
Extension:
|
|
521
|
-
required:
|
|
522
|
-
- key
|
|
523
|
-
- value
|
|
524
|
-
type: object
|
|
525
|
-
properties:
|
|
526
|
-
key:
|
|
527
|
-
type: string
|
|
528
|
-
value:
|
|
529
|
-
type: string
|
package/test/unit/index.test.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/*****
|
|
2
|
-
License
|
|
3
|
-
--------------
|
|
4
|
-
Copyright © 2017 Bill & Melinda Gates Foundation
|
|
5
|
-
The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
|
|
6
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
8
|
-
Contributors
|
|
9
|
-
--------------
|
|
10
|
-
This is the official list of the Mojaloop project contributors for this file.
|
|
11
|
-
Names of the original copyright holders (individuals or organizations)
|
|
12
|
-
should be listed with a '*' in the first column. People who have
|
|
13
|
-
contributed from an organization can be listed under the organization
|
|
14
|
-
that actually holds the copyright for their contributions (see the
|
|
15
|
-
Gates Foundation organization for an example). Those individuals should have
|
|
16
|
-
their names indented and be marked with a '-'. Email address can be added
|
|
17
|
-
optionally within square brackets <email>.
|
|
18
|
-
* Gates Foundation
|
|
19
|
-
|
|
20
|
-
* ModusBox
|
|
21
|
-
* Vijaya Kumar Guthi <vijaya.guthi@modusbox.com> (Original Author)
|
|
22
|
-
--------------
|
|
23
|
-
******/
|
|
24
|
-
|
|
25
|
-
'use strict'
|
|
26
|
-
|
|
27
|
-
const Index = require('../../src/index')
|
|
28
|
-
|
|
29
|
-
describe('Index', () => {
|
|
30
|
-
describe('FolderParser', () => {
|
|
31
|
-
it('Index should export FolderParser', async () => {
|
|
32
|
-
expect(Index.FolderParser).not.toBeNull()
|
|
33
|
-
})
|
|
34
|
-
it('FolderParser should export the function getTestCases', async () => {
|
|
35
|
-
expect(Index.FolderParser).toHaveProperty('getTestCases')
|
|
36
|
-
})
|
|
37
|
-
it('FolderParser should export the function getFolderData', async () => {
|
|
38
|
-
expect(Index.FolderParser).toHaveProperty('getFolderData')
|
|
39
|
-
})
|
|
40
|
-
it('FolderParser should export the function sequenceTestCases', async () => {
|
|
41
|
-
expect(Index.FolderParser).toHaveProperty('sequenceTestCases')
|
|
42
|
-
})
|
|
43
|
-
})
|
|
44
|
-
})
|