aboutsummaryrefslogtreecommitdiff
path: root/src/emscriptif-test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/emscriptif-test.ts')
-rw-r--r--src/emscriptif-test.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/emscriptif-test.ts b/src/emscriptif-test.ts
index c30a06664..3046a147e 100644
--- a/src/emscriptif-test.ts
+++ b/src/emscriptif-test.ts
@@ -77,4 +77,13 @@ test("withdraw-request", (t: TestLib) => {
t.pass();
});
-
+test("withdraw-request", (t: TestLib) => {
+ const a1 = new native.Amount({currency: "KUDOS", value: 1, fraction: 50000000});
+ const a2 = new native.Amount({currency: "KUDOS", value: 1, fraction: 50000000});
+ a1.add(a2);
+ let x = a1.toJson();
+ t.assert(x.currency == "KUDOS");
+ t.assert(x.fraction == 0);
+ t.assert(x.value == 3);
+ t.pass();
+});