Comparing version 1.2.3 to 2.0.0
// Generated by CoffeeScript 2.0.0-beta8 | ||
void function () { | ||
var _find, _registry, allStubs, arrayEqual, bond, createAnonymousSpy, createReturnSpy, createThroughSpy, enhanceSpy, isFunction, nextTick, registerCleanupHook, registered, registry; | ||
var _, _find, _registry, allStubs, bond, createAnonymousSpy, createReturnSpy, createThroughSpy, enhanceSpy, isFunction, nextTick, registerCleanupHook, registered, registry; | ||
_ = require('underscore'); | ||
isFunction = function (obj) { | ||
@@ -60,3 +61,3 @@ return typeof obj === 'function'; | ||
calledArgs = spy.calledArgs[i$]; | ||
if (arrayEqual(args, calledArgs)) | ||
if (_.isEqual(args, calledArgs)) | ||
return true; | ||
@@ -73,13 +74,2 @@ } | ||
}; | ||
arrayEqual = function (A, B) { | ||
var a, b, i; | ||
for (var i$ = 0, length$ = A.length; i$ < length$; ++i$) { | ||
a = A[i$]; | ||
i = i$; | ||
b = B[i]; | ||
if (a !== b) | ||
return false; | ||
} | ||
return true; | ||
}; | ||
nextTick = function () { | ||
@@ -207,6 +197,3 @@ if (isFunction('undefined' !== typeof process && null != process ? process.nextTick : void 0)) | ||
}; | ||
if ('undefined' !== typeof window && null != window) | ||
window.bond = bond; | ||
if ('undefined' !== typeof module && null != module ? module.exports : void 0) | ||
module.exports = bond; | ||
module.exports = bond; | ||
}.call(this); |
{ | ||
"name": "bondjs", | ||
"version": "1.2.3", | ||
"version": "2.0.0", | ||
"description": "simple js stub/spy library", | ||
@@ -19,3 +19,6 @@ "license": "MIT", | ||
"coffee-script-redux": "~2.0.0" | ||
}, | ||
"dependencies": { | ||
"underscore": "^1.8.3" | ||
} | ||
} |
@@ -45,4 +45,2 @@ # bond ![build status](https://travis-ci.org/EndangeredMassa/bond.png) [![David](https://david-dm.org/EndangeredMassa/bond.png)](https://david-dm.org/EndangeredMassa/bond) | ||
`<script src="bond.js">` -> `window.bond(...)` | ||
**with mocha, qunit, jasmine**: These frameworks should work with bond as is. Bond looks for a global function named either `afterEach` or `testDone` to implement its spy/stub restore functionality. If those exist, as they should when using these frameworks, it should work fine. | ||
@@ -49,0 +47,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
23588
1
197
61
+ Addedunderscore@^1.8.3
+ Addedunderscore@1.13.7(transitive)