Testing · Junior · Question 20 of 78
What does .not do in expect(value).not.toBeNull()?
- ✓Correct answer: Inverts the matcher
- 2Skips the assertion
- 3Marks the test as expected to fail
Explanation
Any matcher can be negated: .not.toContain, .not.toHaveBeenCalled and so on.