unexpected
Advanced tools
Comparing version 10.26.0 to 10.26.1
@@ -568,3 +568,3 @@ var createStandardErrorMessage = require('./createStandardErrorMessage'); | ||
if (pattern !== pattern.trim()) { | ||
throw new Error("Assertion patterns can't start or end with whitespace"); | ||
throw new Error("Assertion patterns can't start or end with whitespace:\n\n " + JSON.stringify(pattern)); | ||
} | ||
@@ -605,3 +605,3 @@ } | ||
if (handler.length - 2 > maxNumberOfArgs) { | ||
throw new Error('The provided assertion handler takes ' + (handler.length - 2) + ' parameters, but the type signature specifies a maximum of ' + maxNumberOfArgs); | ||
throw new Error('The provided assertion handler takes ' + (handler.length - 2) + ' parameters, but the type signature specifies a maximum of ' + maxNumberOfArgs + ':\n\n ' + JSON.stringify(patterns)); | ||
} | ||
@@ -691,3 +691,3 @@ | ||
extendedType.inspect = function (obj, depth, output, inspect) { | ||
if (arguments.length < 2) { | ||
if (arguments.length < 2 || (!output || !output.isMagicPen)) { | ||
return 'type: ' + type.name; | ||
@@ -694,0 +694,0 @@ } else { |
{ | ||
"name": "unexpected", | ||
"version": "10.26.0", | ||
"version": "10.26.1", | ||
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
779549
19460