Matchers Flashcards

1
Q

compares with ===

A

toBe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

compares simple literals and variables

A

toEqual

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

for regular expressions

A

toMatch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

compares against undefined

A

toBeDefined/toBeUndefined

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

compares against null

A

toBeNull

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

compares with boolean casting

A

toBeFalsy/toBeTruthy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

finds item in array

A

toContain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

mathematical comparisons

A

toBeLessThan/toBeGreaterThan

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

precision math comparisons

A

toBeCloseTo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

if an exception is thrown

A

toThrow/toThrowError

How well did you know this?
1
Not at all
2
3
4
5
Perfectly