Comparing version 5.0.1 to 5.1.0
@@ -12,3 +12,3 @@ 'use strict'; | ||
var regexpTest = bind.call(Function.call, RegExp.prototype.test); | ||
var yamlIndicators = /\:|\-|\?/; | ||
var yamlIndicators = /:|-|\?/; | ||
var nextTick = typeof setImmediate !== 'undefined' | ||
@@ -15,0 +15,0 @@ ? setImmediate |
@@ -162,3 +162,3 @@ 'use strict'; | ||
var timeout = safeSetTimeout(function () { | ||
self.fail('test timed out after ' + ms + 'ms'); | ||
self.fail(self.name + ' timed out after ' + ms + 'ms'); | ||
self.end(); | ||
@@ -305,4 +305,4 @@ }, ms); | ||
*/ | ||
var re = /^(?:[^\s]*\s*\bat\s+)(?:(.*)\s+\()?((?:\/|[a-zA-Z]:\\)[^:\)]+:(\d+)(?::(\d+))?)\)?$/; | ||
var lineWithTokens = err[i].replace(process.cwd(), '/\$CWD').replace(__dirname, '/\$TEST'); | ||
var re = /^(?:[^\s]*\s*\bat\s+)(?:(.*)\s+\()?((?:\/|[a-zA-Z]:\\)[^:)]+:(\d+)(?::(\d+))?)\)?$/; | ||
var lineWithTokens = err[i].replace(process.cwd(), '/$CWD').replace(__dirname, '/$TEST'); | ||
var m = re.exec(lineWithTokens); | ||
@@ -309,0 +309,0 @@ |
{ | ||
"name": "tape", | ||
"version": "5.0.1", | ||
"version": "5.1.0", | ||
"description": "tap-producing test harness for node and browsers", | ||
@@ -25,3 +25,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"deep-equal": "^2.0.3", | ||
"deep-equal": "^2.0.5", | ||
"defined": "^1.0.0", | ||
@@ -34,10 +34,10 @@ "dotignore": "^0.1.2", | ||
"inherits": "^2.0.4", | ||
"is-regex": "^1.0.5", | ||
"is-regex": "^1.1.1", | ||
"minimist": "^1.2.5", | ||
"object-inspect": "^1.7.0", | ||
"object-is": "^1.1.2", | ||
"object.assign": "^4.1.0", | ||
"resolve": "^1.17.0", | ||
"object-inspect": "^1.9.0", | ||
"object-is": "^1.1.4", | ||
"object.assign": "^4.1.2", | ||
"resolve": "^1.19.0", | ||
"resumer": "^0.0.0", | ||
"string.prototype.trim": "^1.2.1", | ||
"string.prototype.trim": "^1.2.3", | ||
"through": "^2.3.8" | ||
@@ -49,5 +49,5 @@ }, | ||
"ecstatic": "^4.1.4", | ||
"eslint": "^7.0.0", | ||
"eslint": "^7.16.0", | ||
"falafel": "^2.2.4", | ||
"js-yaml": "^3.13.1", | ||
"js-yaml": "^3.14.0", | ||
"tap": "^8.0.1", | ||
@@ -54,0 +54,0 @@ "tap-parser": "^3.0.5" |
@@ -178,1 +178,16 @@ 'use strict'; | ||
}); | ||
tap.test('comment with createStream/objectMode', function (assert) { | ||
assert.plan(1); | ||
var test = tape.createHarness(); | ||
test.createStream({ objectMode: true }).on('data', function (row) { | ||
if (typeof row === 'string') { | ||
assert.equal(row, 'comment message'); | ||
} | ||
}); | ||
test('t.comment', function (t) { | ||
t.comment('comment message'); | ||
t.end(); | ||
}); | ||
}); |
@@ -44,3 +44,3 @@ 'use strict'; | ||
var withoutLineNumbers = withoutPathSep.replace(/:\d+:\d+/g, ':$LINE:$COL'); | ||
var withoutNestedLineNumbers = withoutLineNumbers.replace(/, \<anonymous\>:\$LINE:\$COL\)$/, ')'); | ||
var withoutNestedLineNumbers = withoutLineNumbers.replace(/, <anonymous>:\$LINE:\$COL\)$/, ')'); | ||
return withoutNestedLineNumbers; | ||
@@ -60,3 +60,7 @@ }; | ||
var deduped = withDuplicates.filter(function (line, ix) { | ||
var withoutInternals = withDuplicates.filter(function (line) { | ||
return !line.match(/ \(node:[^)]+\)$/); | ||
}); | ||
var deduped = withoutInternals.filter(function (line, ix) { | ||
var hasPrior = line === stripped && withDuplicates[ix - 1] === stripped; | ||
@@ -63,0 +67,0 @@ return !hasPrior; |
@@ -17,7 +17,7 @@ 'use strict'; | ||
'# timeoutAfter', | ||
'not ok 1 test timed out after 1ms', | ||
'not ok 1 timeoutAfter timed out after 1ms', | ||
' ---', | ||
' operator: fail', | ||
' stack: |-', | ||
' Error: test timed out after 1ms', | ||
' Error: timeoutAfter timed out after 1ms', | ||
' [... stack stripped ...]', | ||
@@ -24,0 +24,0 @@ ' ...', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
211896
5681
418
Updateddeep-equal@^2.0.5
Updatedis-regex@^1.1.1
Updatedobject-inspect@^1.9.0
Updatedobject-is@^1.1.4
Updatedobject.assign@^4.1.2
Updatedresolve@^1.19.0
Updatedstring.prototype.trim@^1.2.3