unexpected
Advanced tools
Comparing version 5.0.0-beta22 to 5.0.0-beta23
@@ -48,3 +48,3 @@ var utils = require('./utils'); | ||
expect.addAssertion('number', '[not] to be NaN', function (expect, subject) { | ||
expect(isNaN(subject), '[not] to be true'); | ||
expect(isNaN(subject), '[not] to be truthy'); | ||
}); | ||
@@ -72,5 +72,5 @@ | ||
type = /^reg(?:exp?|ular expression)$/.test(type) ? 'regexp' : type; | ||
expect(subjectType.is(type), '[not] to be true'); | ||
expect(subjectType.is(type), '[not] to be truthy'); | ||
} else { | ||
expect(subject instanceof type, '[not] to be true'); | ||
expect(subject instanceof type, '[not] to be truthy'); | ||
} | ||
@@ -270,3 +270,3 @@ | ||
expect.addAssertion('number', '[not] to be finite', function (expect, subject) { | ||
expect(isFinite(subject), '[not] to be true'); | ||
expect(isFinite(subject), '[not] to be truthy'); | ||
}); | ||
@@ -280,19 +280,19 @@ | ||
this.args = [start + '..' + finish]; | ||
expect(subject >= start && subject <= finish, '[not] to be true'); | ||
expect(subject >= start && subject <= finish, '[not] to be truthy'); | ||
}); | ||
expect.addAssertion(['number', 'string'], ['<', '[not] to be (<|less than|below)'], function (expect, subject, value) { | ||
expect(subject < value, '[not] to be true'); | ||
expect(subject < value, '[not] to be truthy'); | ||
}); | ||
expect.addAssertion(['number', 'string'], ['<=', '[not] to be (<=|less than or equal to)'], function (expect, subject, value) { | ||
expect(subject <= value, '[not] to be true'); | ||
expect(subject <= value, '[not] to be truthy'); | ||
}); | ||
expect.addAssertion(['number', 'string'], ['>', '[not] to be (>|greater than|above)'], function (expect, subject, value) { | ||
expect(subject > value, '[not] to be true'); | ||
expect(subject > value, '[not] to be truthy'); | ||
}); | ||
expect.addAssertion(['number', 'string'], ['>=', '[not] to be (>=|greater than or equal to)'], function (expect, subject, value) { | ||
expect(subject >= value, '[not] to be true'); | ||
expect(subject >= value, '[not] to be truthy'); | ||
}); | ||
@@ -361,5 +361,5 @@ | ||
// the matching. | ||
expect(thrown, 'to be true'); | ||
expect(thrown, 'to be truthy'); | ||
} else { | ||
expect(thrown, '[not] to be true'); | ||
expect(thrown, '[not] to be truthy'); | ||
} | ||
@@ -705,3 +705,3 @@ }); | ||
var type = expect.findTypeOf(subject, value); | ||
expect(type.is('wrapperObject'), 'to be true'); | ||
expect(type.is('wrapperObject'), 'to be truthy'); | ||
try { | ||
@@ -714,3 +714,3 @@ expect(type.unwrap(subject), 'to [exhaustively] satisfy', type.unwrap(value)); | ||
var subjectType = expect.findTypeOf(subject); | ||
expect(subjectType.is('wrapperObject'), 'to be true'); | ||
expect(subjectType.is('wrapperObject'), 'to be truthy'); | ||
try { | ||
@@ -717,0 +717,0 @@ expect(subjectType.unwrap(subject), 'to [exhaustively] satisfy', value); |
{ | ||
"name": "unexpected", | ||
"version": "5.0.0-beta22", | ||
"version": "5.0.0-beta23", | ||
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>", | ||
@@ -25,3 +25,3 @@ "keywords": [ | ||
"leven": "1.0.0", | ||
"magicpen": "3.0.0" | ||
"magicpen": "3.0.7" | ||
}, | ||
@@ -32,3 +32,3 @@ "devDependencies": { | ||
"coveralls": "^2.11.1", | ||
"es5-shim": "4.0.3", | ||
"es5-shim": "4.0.5", | ||
"istanbul": "^0.3.0", | ||
@@ -39,5 +39,5 @@ "jshint": "2.5.6", | ||
"mocha-slow-reporter": "*", | ||
"phantomjs": "1.9.7-15", | ||
"phantomjs": "1.9.12", | ||
"serve": "*" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
11166
1060588
32
+ Addedansi-styles@2.2.1(transitive)
+ Addedmagicpen@3.0.7(transitive)
- Removedansi-styles@1.1.0(transitive)
- Removedmagicpen@3.0.0(transitive)
Updatedmagicpen@3.0.7