Use expect's instanceOf and toHaveProperty methods

This commit is contained in:
Deven Bansod
2018-03-27 21:59:38 +05:30
parent c9b99af5a6
commit b09c729675
51 changed files with 101 additions and 124 deletions

View File

@@ -16,4 +16,4 @@ tally.next(0.1);
tally.next(0.1);
tally.next(0.1);
let last = tally.next("done");
expect(last.value).toBe(0.30000000000000004);
expect(last.value).toBeCloseTo(0.3, 10);