File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -11,22 +11,16 @@ function foo() {}
11
11
const callsfoo = tracker . calls ( foo , 1 ) ;
12
12
13
13
// Ensures that foo was added to the callChecks array.
14
- if ( tracker . report ( ) [ 0 ] . operator !== 'foo' ) {
15
- process . exit ( 1 ) ;
16
- }
14
+ assert . strictEqual ( tracker . report ( ) [ 0 ] . operator , 'foo' ) ;
17
15
18
16
callsfoo ( ) ;
19
17
20
18
// Ensures that foo was removed from the callChecks array after being called the
21
19
// expected number of times.
22
- if ( typeof tracker . report ( ) [ 0 ] === 'undefined' ) {
23
- process . exit ( 1 ) ;
24
- }
20
+ assert . strictEqual ( typeof tracker . report ( ) [ 0 ] , 'undefined' ) ;
25
21
26
22
callsfoo ( ) ;
27
23
28
24
// Ensures that foo was added back to the callChecks array after being called
29
25
// more than the expected number of times.
30
- if ( tracker . report ( ) [ 0 ] . operator !== 'foo' ) {
31
- process . exit ( 1 ) ;
32
- }
26
+ assert . strictEqual ( tracker . report ( ) [ 0 ] . operator , 'foo' ) ;
You can’t perform that action at this time.
0 commit comments