Skip to content

Commit ee3e901

Browse files
committed
at attempt to ignore certain condition in nyc coverage
1 parent 6bab5f3 commit ee3e901

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/fake-timers-src.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,13 @@ function withGlobal(_global) {
267267

268268
var matchedLineIndex = -1;
269269
job.error.stack.split("\n").some(function (line, i) {
270-
if (!addTimerReturnsObject) {
271-
// when not in node
272-
// If we've matched a computed target line (e.g. setTimeout) then we
273-
// don't need to look any further. Return true to stop iterating.
274-
var matchedComputedTarget = line.match(computedTargetPattern);
275-
if (matchedComputedTarget) {
276-
matchedLineIndex = i;
277-
return true;
278-
}
270+
// If we've matched a computed target line (e.g. setTimeout) then we
271+
// don't need to look any further. Return true to stop iterating.
272+
var matchedComputedTarget = line.match(computedTargetPattern);
273+
/* istanbul ignore if */
274+
if (matchedComputedTarget) {
275+
matchedLineIndex = i;
276+
return true;
279277
}
280278

281279
// If we've matched a clock method line, then there may still be

0 commit comments

Comments
 (0)