Comparing version 1.3.1 to 1.4.0
@@ -341,3 +341,3 @@ 'use strict'; | ||
for (var i = 0, length = this.value.length; i < length; i++) { | ||
if (val === this.value[i]) { | ||
if (this._deep ? deep(this.value[i], val) : this.value[i] === val) { | ||
includes = true; | ||
@@ -822,3 +822,3 @@ break; | ||
* @param {String} msg Custom message provided by users. | ||
* @param {String} expectation What the assertion expected. | ||
* @param {Function} expectation Compiled expectation template | ||
* @param {Number} slice The amount of stack traces we need to remove. | ||
@@ -825,0 +825,0 @@ * @returns {Assert} |
{ | ||
"name": "assume", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "Expect-like assertions that works seamlessly in node and browsers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -765,3 +765,3 @@ # assume | ||
- `msg`, a string which is the reason or message provided by the users. | ||
- `expectation`, a string which explains what the assertion expected. | ||
- `expectation`, a compiled template which explains what the assertion expected. | ||
- `slice`, a number which slices of stacks from the stack trace. This is keeps | ||
@@ -777,3 +777,4 @@ the stack trace clear of all references to our own assertion library and only | ||
assume.add('true', function (msg) { | ||
return this.test(this.value === true, msg, 'value to @ be true'); | ||
var expectation = format('value to @ be true'); | ||
return this.test(this.value === true, msg, expectation); | ||
}); | ||
@@ -780,0 +781,0 @@ ``` |
Sorry, the diff of this file is too big to display
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
163515
4314
832