diff options
| author | Florian Dold <florian.dold@gmail.com> | 2020-07-27 23:27:32 +0530 | 
|---|---|---|
| committer | Florian Dold <florian.dold@gmail.com> | 2020-07-27 23:27:32 +0530 | 
| commit | a4f1127e0adc4fca173a4b66419f87c0d387fb8a (patch) | |
| tree | b5d000169b0c0646eee4d35b839ef90271a30918 /src/util/taleruri-test.ts | |
| parent | ae111663f412ad7bee9029110e3ab1594ec14576 (diff) | |
allow http for taler withdraw URIs
Diffstat (limited to 'src/util/taleruri-test.ts')
| -rw-r--r-- | src/util/taleruri-test.ts | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/src/util/taleruri-test.ts b/src/util/taleruri-test.ts index 40a30bf7f..314a981fd 100644 --- a/src/util/taleruri-test.ts +++ b/src/util/taleruri-test.ts @@ -107,6 +107,17 @@ test("taler withdraw uri parsing", (t) => {    t.is(r1.bankIntegrationApiBaseUrl, "https://bank.example.com/");  }); +test("taler withdraw uri parsing (http)", (t) => { +  const url1 = "taler+http://withdraw/bank.example.com/12345"; +  const r1 = parseWithdrawUri(url1); +  if (!r1) { +    t.fail(); +    return; +  } +  t.is(r1.withdrawalOperationId, "12345"); +  t.is(r1.bankIntegrationApiBaseUrl, "http://bank.example.com/"); +}); +  test("taler refund uri parsing", (t) => {    const url1 = "taler://refund/merchant.example.com/1234";    const r1 = parseRefundUri(url1); | 
