File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ describe("Balance Control", (): void => {
44
44
scope . post ( "/balanceTransfer" )
45
45
. reply ( 200 , expected ) ;
46
46
47
- const response : BalanceTransferResponse = await balanceService . balanceTransfer ( request ) ;
47
+ const response : BalanceTransferResponse = await balanceService . BalanceControlApi . balanceTransfer ( request ) ;
48
48
expect ( response . status ) . toEqual ( BalanceTransferResponse . StatusEnum . Transferred ) ;
49
49
} ) ;
50
50
@@ -61,7 +61,7 @@ describe("Balance Control", (): void => {
61
61
scope . post ( "/balanceTransfer" )
62
62
. reply ( 422 , expected ) ;
63
63
64
- await balanceService . balanceTransfer ( request ) ;
64
+ await balanceService . BalanceControlApi . balanceTransfer ( request ) ;
65
65
fail ( "No exception was thrown" ) ;
66
66
} catch ( error ) {
67
67
expect ( error instanceof HttpClientException ) . toBeTruthy ( ) ;
@@ -73,7 +73,7 @@ describe("Balance Control", (): void => {
73
73
expect ( error . apiError ) . toBeTruthy ( ) ;
74
74
expect ( error . apiError ?. errorCode ) . toBe ( "30_004" ) ;
75
75
expect ( error . apiError ?. message ) . toBe ( "Merchant account code is invalid or missing" ) ;
76
- expect ( error . apiError ?. errorType ) . toBe ( "validation" )
76
+ expect ( error . apiError ?. errorType ) . toBe ( "validation" ) ;
77
77
} else {
78
78
fail ( "Error did not contain the expected data" ) ;
79
79
}
You can’t perform that action at this time.
0 commit comments