Skip to content

Commit 2392f36

Browse files
committed
fixup! tools: improve valid-typeof lint rule
1 parent 7731da8 commit 2392f36

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

test/parallel/test-assert-calltracker-report.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,16 @@ function foo() {}
1111
const callsfoo = tracker.calls(foo, 1);
1212

1313
// 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');
1715

1816
callsfoo();
1917

2018
// Ensures that foo was removed from the callChecks array after being called the
2119
// expected number of times.
22-
if (typeof tracker.report()[0] === 'undefined') {
23-
process.exit(1);
24-
}
20+
assert.strictEqual(typeof tracker.report()[0], 'undefined');
2521

2622
callsfoo();
2723

2824
// Ensures that foo was added back to the callChecks array after being called
2925
// 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');

0 commit comments

Comments
 (0)