summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/cta/Payment/test.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-10-22 14:47:50 -0300
committerSebastian <sebasjm@gmail.com>2023-10-22 14:47:50 -0300
commit5e160a2d4d1d77c87600f28f806bc94c086267c7 (patch)
treeec8475a39d7aa4565b490e259d787b195fb98bb3 /packages/taler-wallet-webextension/src/cta/Payment/test.ts
parent2005273d1286819e68d3ea7a3290f8c357be5e40 (diff)
downloadwallet-core-5e160a2d4d1d77c87600f28f806bc94c086267c7.tar.gz
wallet-core-5e160a2d4d1d77c87600f28f806bc94c086267c7.tar.bz2
wallet-core-5e160a2d4d1d77c87600f28f806bc94c086267c7.zip
update the amountString definitionv0.9.3-dev.34
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Payment/test.ts')
-rw-r--r--packages/taler-wallet-webextension/src/cta/Payment/test.ts43
1 files changed, 22 insertions, 21 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Payment/test.ts b/packages/taler-wallet-webextension/src/cta/Payment/test.ts
index e2935fc4e..213382efc 100644
--- a/packages/taler-wallet-webextension/src/cta/Payment/test.ts
+++ b/packages/taler-wallet-webextension/src/cta/Payment/test.ts
@@ -20,6 +20,7 @@
*/
import {
+ AmountString,
Amounts,
ConfirmPayResult,
ConfirmPayResultType,
@@ -139,10 +140,10 @@ describe("Payment CTA states", () => {
{
balances: [
{
- available: "USD:5",
+ available: "USD:5" as AmountString,
hasPendingTransactions: false,
- pendingIncoming: "USD:0",
- pendingOutgoing: "USD:0",
+ pendingIncoming: "USD:0" as AmountString,
+ pendingOutgoing: "USD:0" as AmountString,
requiresUserInput: false,
scopeInfo: {
currency: "USD",
@@ -199,10 +200,10 @@ describe("Payment CTA states", () => {
{
balances: [
{
- available: "USD:15",
+ available: "USD:15" as AmountString,
hasPendingTransactions: false,
- pendingIncoming: "USD:0",
- pendingOutgoing: "USD:0",
+ pendingIncoming: "USD:0" as AmountString,
+ pendingOutgoing: "USD:0" as AmountString,
requiresUserInput: false,
scopeInfo: {
currency: "USD",
@@ -262,10 +263,10 @@ describe("Payment CTA states", () => {
{
balances: [
{
- available: "USD:15",
+ available: "USD:15" as AmountString,
hasPendingTransactions: false,
- pendingIncoming: "USD:0",
- pendingOutgoing: "USD:0",
+ pendingIncoming: "USD:0" as AmountString,
+ pendingOutgoing: "USD:0" as AmountString,
requiresUserInput: false,
scopeInfo: {
currency: "USD",
@@ -323,10 +324,10 @@ describe("Payment CTA states", () => {
{
balances: [
{
- available: "USD:15",
+ available: "USD:15" as AmountString,
hasPendingTransactions: false,
- pendingIncoming: "USD:0",
- pendingOutgoing: "USD:0",
+ pendingIncoming: "USD:0" as AmountString,
+ pendingOutgoing: "USD:0" as AmountString,
requiresUserInput: false,
scopeInfo: {
currency: "USD",
@@ -392,10 +393,10 @@ describe("Payment CTA states", () => {
{
balances: [
{
- available: "USD:15",
+ available: "USD:15" as AmountString,
hasPendingTransactions: false,
- pendingIncoming: "USD:0",
- pendingOutgoing: "USD:0",
+ pendingIncoming: "USD:0" as AmountString,
+ pendingOutgoing: "USD:0" as AmountString,
requiresUserInput: false,
scopeInfo: {
currency: "USD",
@@ -480,10 +481,10 @@ describe("Payment CTA states", () => {
{
balances: [
{
- available: "USD:10",
+ available: "USD:10" as AmountString,
hasPendingTransactions: false,
- pendingIncoming: "USD:0",
- pendingOutgoing: "USD:0",
+ pendingIncoming: "USD:0" as AmountString,
+ pendingOutgoing: "USD:0" as AmountString,
requiresUserInput: false,
scopeInfo: {
currency: "USD",
@@ -511,10 +512,10 @@ describe("Payment CTA states", () => {
{
balances: [
{
- available: "USD:15",
+ available: "USD:15" as AmountString,
hasPendingTransactions: false,
- pendingIncoming: "USD:0",
- pendingOutgoing: "USD:0",
+ pendingIncoming: "USD:0" as AmountString,
+ pendingOutgoing: "USD:0" as AmountString,
requiresUserInput: false,
scopeInfo: {
currency: "USD",