Matchers Flashcards
1
Q
compares with ===
A
toBe
2
Q
compares simple literals and variables
A
toEqual
3
Q
for regular expressions
A
toMatch
4
Q
compares against undefined
A
toBeDefined/toBeUndefined
5
Q
compares against null
A
toBeNull
6
Q
compares with boolean casting
A
toBeFalsy/toBeTruthy
7
Q
finds item in array
A
toContain
8
Q
mathematical comparisons
A
toBeLessThan/toBeGreaterThan
9
Q
precision math comparisons
A
toBeCloseTo
10
Q
if an exception is thrown
A
toThrow/toThrowError