aboutsummaryrefslogtreecommitdiff
path: root/test/tests
diff options
context:
space:
mode:
Diffstat (limited to 'test/tests')
-rw-r--r--test/tests/taler.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/tests/taler.ts b/test/tests/taler.ts
new file mode 100644
index 000000000..0ffb37329
--- /dev/null
+++ b/test/tests/taler.ts
@@ -0,0 +1,13 @@
+import * as Emsc from '../../lib/wallet/emscriptif';
+
+
+declare var HttpMockLib: any;
+
+export function declareTests(assert: any, context: any, it: any) {
+
+ it("calls native emscripten code", function() {
+ let x = new Emsc.Amount({value: 42, fraction: 42, currency: "EUR"});
+ let j = x.toJson();
+ assert("value" in j);
+ });
+}