2016-01-10 20:07:42 +01:00
|
|
|
import * as Emsc from '../../lib/wallet/emscriptif';
|
|
|
|
|
2016-01-24 02:29:13 +01:00
|
|
|
|
2016-09-12 20:25:56 +02:00
|
|
|
declare var HttpMockLib: any;
|
2016-01-24 02:29:13 +01:00
|
|
|
|
2016-09-12 20:25:56 +02:00
|
|
|
export function declareTests(assert: any, context: any, it: any) {
|
2016-01-24 02:29:13 +01:00
|
|
|
|
2016-04-27 15:06:56 +02:00
|
|
|
it("calls native emscripten code", function() {
|
2016-01-24 02:29:13 +01:00
|
|
|
let x = new Emsc.Amount({value: 42, fraction: 42, currency: "EUR"});
|
2016-01-10 20:07:42 +01:00
|
|
|
let j = x.toJson();
|
|
|
|
assert("value" in j);
|
|
|
|
});
|
2016-04-27 15:06:56 +02:00
|
|
|
}
|