Asserts that a value is a number
, and is not NaN
or Infinity
.
Symbol
Matchers.toBeFinite
expect(1).toBeFinite();
expect(3.14).toBeFinite();
expect(NaN).not.toBeFinite();
expect(Infinity).not.toBeFinite();
Symbol
Asserts that a value is a number
, and is not NaN
or Infinity
.
expect(1).toBeFinite();
expect(3.14).toBeFinite();
expect(NaN).not.toBeFinite();
expect(Infinity).not.toBeFinite();