Comparing version 1.4.1 to 1.4.2
@@ -0,1 +1,4 @@ | ||
== 1.4.2 / 2012-07-11 | ||
* sinon.match for arrays (Maximilian Antoni) | ||
== 1.4.1 / 2012-07-11 | ||
@@ -2,0 +5,0 @@ * Strengthen a Node.JS inference to avoid quirky behavior with Mocha |
@@ -59,3 +59,3 @@ /* @depend ../sinon.js */ | ||
} | ||
} else if (exp !== act) { | ||
} else if (!sinon.deepEqual(exp, act)) { | ||
return false; | ||
@@ -62,0 +62,0 @@ } |
{ | ||
"name": "sinon", | ||
"description": "JavaScript test spies, stubs and mocks.", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"homepage": "http://cjohansen.no/sinon/", | ||
@@ -6,0 +6,0 @@ "author": "Christian Johansen", |
@@ -125,2 +125,20 @@ /*jslint onevar: false, eqeqeq: false*/ | ||
"returns true if array is equal": function () { | ||
var match = sinon.match({ arr: ["a", "b"] }); | ||
assert(match.test({ arr: ["a", "b"] })); | ||
}, | ||
"returns false if array is not equal": function () { | ||
var match = sinon.match({ arr: ["b", "a"] }); | ||
assert.isFalse(match.test({ arr: ["a", "b"] })); | ||
}, | ||
"returns true if number objects are equal": function () { | ||
var match = sinon.match({ one : new Number(1) }); | ||
assert(match.test({ one : new Number(1) })); | ||
}, | ||
"returns true if test matches": function () { | ||
@@ -127,0 +145,0 @@ var match = sinon.match({ prop: sinon.match.typeOf("boolean") }); |
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
1631540
60
34015