Skip to content

Commit

Permalink
update base url in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrenzo17 committed Nov 24, 2021
1 parent a05d72d commit 206df7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/httpClient.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('httpClient.js',()=> {
let httpClient = new HttpClient();
return httpClient.request(
'get',
cons.serverKey,cons.CORE_SANDBOX_BASE_URL+'/token',
cons.serverKey,cons.CORE_SANDBOX_BASE_URL+'/v2/token',
{
'card_number': '5264 2210 3887 4659',
'card_exp_month': '12',
Expand Down
4 changes: 2 additions & 2 deletions test/sharedConstants.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const cons = {
serverKey : 'SB-Mid-server-GwUP_WGbJPXsDzsNEBRs8IYA',
clientKey : 'SB-Mid-client-61XuGAwQ8Bj8LxSS',
CORE_SANDBOX_BASE_URL : 'https://api.sandbox.midtrans.com/v2',
CORE_PRODUCTION_BASE_URL : 'https://api.midtrans.com/v2',
CORE_SANDBOX_BASE_URL : 'https://api.sandbox.midtrans.com',
CORE_PRODUCTION_BASE_URL : 'https://api.midtrans.com',
SNAP_SANDBOX_BASE_URL : 'https://app.sandbox.midtrans.com/snap/v1',
SNAP_PRODUCTION_BASE_URL : 'https://app.midtrans.com/snap/v1',
// iris related
Expand Down

0 comments on commit 206df7e

Please sign in to comment.