Asserts that a value is a number
, and is an integer.
method
test.Matchers.toBeInteger
expect(1).toBeInteger();
expect(3.14).not.toBeInteger();
expect(NaN).not.toBeInteger();
method
Asserts that a value is a number
, and is an integer.
expect(1).toBeInteger();
expect(3.14).not.toBeInteger();
expect(NaN).not.toBeInteger();