2016-01-10 20:07:42 +01:00
|
|
|
import * as Emsc from '../../lib/wallet/emscriptif';
|
|
|
|
|
2016-01-24 02:29:13 +01:00
|
|
|
|
|
|
|
declare var HttpMockLib;
|
|
|
|
|
2016-01-10 20:07:42 +01:00
|
|
|
export function declareTests(assert, context, it) {
|
2016-01-24 02:29:13 +01:00
|
|
|
|
2016-01-10 20:07:42 +01:00
|
|
|
it("works!", 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-01-24 02:29:13 +01:00
|
|
|
|
|
|
|
|
|
|
|
it("retries", function() {
|
|
|
|
let m = new HttpMockLib();
|
|
|
|
/*m.intercept()
|
|
|
|
.matchUrlContains()
|
|
|
|
.counterEquals(0)
|
|
|
|
.count()
|
|
|
|
.sen*/
|
|
|
|
})
|
|
|
|
|
2016-01-10 20:07:42 +01:00
|
|
|
}
|