unexpected
Advanced tools
Comparing version 5.3.0 to 5.4.0
@@ -40,3 +40,3 @@ var utils = require('./utils'); | ||
expect.addAssertion('[not] to be undefined', function (expect, subject) { | ||
expect(typeof subject, '[not] to be', 'undefined'); | ||
expect(typeof subject === 'undefined', '[not] to be truthy'); | ||
}); | ||
@@ -48,3 +48,3 @@ | ||
expect.addAssertion('number', '[not] to be NaN', function (expect, subject) { | ||
expect.addAssertion(['number', 'NaN'], '[not] to be NaN', function (expect, subject) { | ||
expect(isNaN(subject), '[not] to be truthy'); | ||
@@ -51,0 +51,0 @@ }); |
@@ -853,2 +853,9 @@ var utils = require('./utils'); | ||
expect.addType({ | ||
name: 'NaN', | ||
identify: function (value) { | ||
return typeof value === 'number' && isNaN(value); | ||
} | ||
}); | ||
expect.addType({ | ||
name: 'boolean', | ||
@@ -855,0 +862,0 @@ identify: function (value) { |
@@ -480,2 +480,3 @@ /*global setTimeout*/ | ||
delete newError.createDiff; | ||
delete newError.label; | ||
return newError; | ||
@@ -482,0 +483,0 @@ case 'default': |
{ | ||
"name": "unexpected", | ||
"version": "5.3.0", | ||
"version": "5.4.0", | ||
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
3404673
11875