diff options
| author | Shulhan <ms@kilabit.info> | 2025-07-12 17:50:14 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-07-12 17:50:14 +0700 |
| commit | 9d95a106f2bec29ba11706bd28b70851e1381056 (patch) | |
| tree | bed96996b38eafeeb573bb7d82268646851eb7ee | |
| parent | dba7aa16a4df5e89c2aea5cec1d07609f468de82 (diff) | |
| download | duitku-9d95a106f2bec29ba11706bd28b70851e1381056.tar.xz | |
all: fix tests based on recent API response
Some API now return "SUCCESS" instead of "Success", which is inconsistent
with the rest.
| -rw-r--r-- | client_test.go | 1 | ||||
| -rw-r--r-- | testdata/disbursement/listbank_test.txt | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/client_test.go b/client_test.go index e54a825..ea67d89 100644 --- a/client_test.go +++ b/client_test.go @@ -197,6 +197,7 @@ func TestClient_InquiryStatus_sandbox(t *testing.T) { t.Fatal(err) } expInquiryStatus.CustRefNumber = resInqueryStatus.CustRefNumber + expInquiryStatus.Response.Desc = `SUCCESS` test.Assert(t, `InquiryStatus`, expInquiryStatus, resInqueryStatus) } diff --git a/testdata/disbursement/listbank_test.txt b/testdata/disbursement/listbank_test.txt index fc4d341..8d9077e 100644 --- a/testdata/disbursement/listbank_test.txt +++ b/testdata/disbursement/listbank_test.txt @@ -155,6 +155,11 @@ Some JSON is sorted using jq, for example "bankName": "SHOPEEPAY" }, { + "maxAmountTransfer": "1000000000", + "bankCode": "1014", + "bankName": "LINKAJA" + }, + { "maxAmountTransfer": "100000000", "bankCode": "110", "bankName": "PT. BPD JAWA BARAT DAN BANTEN, TBK" @@ -400,6 +405,11 @@ Some JSON is sorted using jq, for example "bankName": "PT BANK SBI INDONESIA" }, { + "maxAmountTransfer": "25000000", + "bankCode": "501", + "bankName": "BANK DIGITAL BCA" + }, + { "maxAmountTransfer": "50000000", "bankCode": "501", "bankName": "PT BANK ROYAL INDONESIA" @@ -518,5 +528,10 @@ Some JSON is sorted using jq, for example "maxAmountTransfer": "100000000", "bankCode": "950", "bankName": "PT BANK COMMONWEALTH" + }, + { + "maxAmountTransfer": "500000000", + "bankCode": "ASP1R3", + "bankName": "ASPIRE ACCOUNT" } ] |
