aboutsummaryrefslogtreecommitdiff
path: root/test/tests/taler.ts
blob: 0ffb3732940f84065d4e3e45f1682840c8c35ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
  });
}