Skip to content

Commit 6014f0a

Browse files
style: use !!skip instead of Boolean(skip)
1 parent 56ab67a commit 6014f0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/test_runner/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function stopTest(timeout, signal) {
150150

151151
disposeFunction = () => {
152152
abortListener[SymbolDispose]();
153-
clearTimeout(timer);
153+
timer[SymbolDispose]();
154154
};
155155
}
156156

@@ -680,7 +680,7 @@ class Test extends AsyncResource {
680680
this.expectedAssertions = plan;
681681
this.cancelled = false;
682682
this.expectFailure = parseExpectFailure(expectFailure) || this.parent?.expectFailure;
683-
this.skipped = Boolean(skip);
683+
this.skipped = !!skip;
684684
this.isTodo = (todo !== undefined && todo !== false) || this.parent?.isTodo;
685685
this.startTime = null;
686686
this.endTime = null;

0 commit comments

Comments
 (0)