Skip to content

Commit b714a8b

Browse files
authored
Update Jest version (immutable-js#1530)
Fix issue based on Jest now correct differentiation of 0 / -0
1 parent e6636f5 commit b714a8b

File tree

3 files changed

+1191
-357
lines changed

3 files changed

+1191
-357
lines changed

__tests__/hash.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ describe('hash', () => {
5151

5252
check.it('generates unsigned 31-bit integers', [genValue], value => {
5353
const hashVal = hash(value);
54-
expect(hashVal % 1).toBe(0);
54+
expect(Number.isInteger(hashVal)).toBe(true);
55+
expect(hashVal).toBeGreaterThan(-Math.pow(2, 31));
5556
expect(hashVal).toBeLessThan(Math.pow(2, 31));
5657
});
5758
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"gulp-uglify": "2.1.0",
8383
"gulp-util": "3.0.8",
8484
"jasmine-check": "0.1.5",
85-
"jest": "21.2.1",
85+
"jest": "22.4.3",
8686
"marked": "0.3.19",
8787
"microtime": "2.1.8",
8888
"mkdirp": "0.5.1",

0 commit comments

Comments
 (0)