wallet-core/test/tests/taler.ts

14 lines
335 B
TypeScript
Raw Normal View History

import * as Emsc from '../../lib/wallet/emscriptif';
2016-09-12 20:25:56 +02:00
declare var HttpMockLib: any;
2016-09-12 20:25:56 +02:00
export function declareTests(assert: any, context: any, it: any) {
2016-04-27 15:06:56 +02:00
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);
});
2016-04-27 15:06:56 +02:00
}