summaryrefslogtreecommitdiff
path: root/src/util/amounts-test.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-22 14:22:03 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-22 14:22:03 +0530
commite60563fb540c04d9ba751fea69c1fc0f1de598b5 (patch)
tree45f7c86b66dc150d413f9855efaa6341e4a44624 /src/util/amounts-test.ts
parentf4a8702b3cf93f9edf96d1d1c8cb88baa309e301 (diff)
downloadwallet-core-e60563fb540c04d9ba751fea69c1fc0f1de598b5.tar.gz
wallet-core-e60563fb540c04d9ba751fea69c1fc0f1de598b5.tar.bz2
wallet-core-e60563fb540c04d9ba751fea69c1fc0f1de598b5.zip
consistent error handling for HTTP request (and some other things)
Diffstat (limited to 'src/util/amounts-test.ts')
-rw-r--r--src/util/amounts-test.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util/amounts-test.ts b/src/util/amounts-test.ts
index e10ee5962..afd8caa51 100644
--- a/src/util/amounts-test.ts
+++ b/src/util/amounts-test.ts
@@ -24,9 +24,7 @@ const jAmt = (
currency: string,
): AmountJson => ({ value, fraction, currency });
-const sAmt = (
- s: string
-): AmountJson => Amounts.parseOrThrow(s);
+const sAmt = (s: string): AmountJson => Amounts.parseOrThrow(s);
test("amount addition (simple)", (t) => {
const a1 = jAmt(1, 0, "EUR");