14 lines
335 B
TypeScript
14 lines
335 B
TypeScript
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);
|
|
});
|
|
}
|