Assertion
Also known as test assertion · assert
A check that states an expected condition and reports a failure when it is not met.
In the real world
expect(results).toHaveLength(3); asserts that a search returned three entries.
Also known as test assertion · assert
A check that states an expected condition and reports a failure when it is not met.
expect(results).toHaveLength(3); asserts that a search returned three entries.