@tim-code/my-util 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/math.js +1 -1
- package/src/math.test.js +3 -3
package/package.json
CHANGED
package/src/math.js
CHANGED
package/src/math.test.js
CHANGED
|
@@ -311,9 +311,9 @@ describe("isNumber", () => {
|
|
|
311
311
|
expect(isNumber(Number.MIN_SAFE_INTEGER)).toBe(true)
|
|
312
312
|
})
|
|
313
313
|
|
|
314
|
-
it("returns
|
|
315
|
-
expect(isNumber(Infinity)).toBe(
|
|
316
|
-
expect(isNumber(-Infinity)).toBe(
|
|
314
|
+
it("returns false for Infinity and -Infinity", () => {
|
|
315
|
+
expect(isNumber(Infinity)).toBe(false)
|
|
316
|
+
expect(isNumber(-Infinity)).toBe(false)
|
|
317
317
|
})
|
|
318
318
|
|
|
319
319
|
it("returns false for NaN", () => {
|