Comparing version 4.0.0 to 4.1.0
@@ -198,2 +198,10 @@ 'use strict'; | ||
internals.nan = function () { | ||
return this.assert(Number.isNaN(this._ref), 'be NaN'); | ||
}; | ||
internals.addMethod('NaN', internals.nan); | ||
internals.include = function (value) { | ||
@@ -271,3 +279,3 @@ | ||
return this.assert(compare(this._ref, value), 'equal specified value', this._ref, value); | ||
return this.assert(compare(this._ref, value), `equal specified value: ${internals.display(value)}`, this._ref, value); | ||
}; | ||
@@ -274,0 +282,0 @@ |
{ | ||
"name": "code", | ||
"description": "assertion library", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"repository": "git://github.com/hapijs/code", | ||
@@ -19,4 +19,4 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"lab": "11.x.x", | ||
"markdown-toc": "0.12.x" | ||
"lab": "13.x.x", | ||
"markdown-toc": "1.1.x" | ||
}, | ||
@@ -23,0 +23,0 @@ "scripts": { |
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
17224
301