unexpected
Advanced tools
Comparing version 2.1.4 to 2.1.6
@@ -23,10 +23,8 @@ (function () { | ||
// SOFTWARE. | ||
var namespace = {}; | ||
(function () { | ||
var global = this; | ||
global.unexpected = {}; | ||
}()); | ||
(function () { | ||
var global = this; | ||
global.unexpected.shim = global.unexpected.shim || {}; | ||
var shim = global.unexpected.shim; | ||
namespace.shim = namespace.shim || {}; | ||
var shim = namespace.shim; | ||
@@ -73,5 +71,5 @@ var prototypes = { | ||
}()); | ||
(function () { | ||
var global = this; | ||
var shim = global.unexpected.shim; | ||
var shim = namespace.shim; | ||
var forEach = shim.forEach; | ||
@@ -212,11 +210,10 @@ var getKeys = shim.getKeys; | ||
global.unexpected.utils = utils; | ||
namespace.utils = utils; | ||
}()); | ||
(function () { | ||
var global = this; | ||
var unexpected = global.unexpected; | ||
var shim = unexpected.shim; | ||
var shim = namespace.shim; | ||
var getKeys = shim.getKeys; | ||
var utils = unexpected.utils; | ||
var utils = namespace.utils; | ||
var isRegExp = utils.isRegExp; | ||
@@ -315,7 +312,7 @@ var isArguments = utils.isArguments; | ||
global.unexpected.equal = equal; | ||
namespace.equal = equal; | ||
}()); | ||
(function () { | ||
var global = this; | ||
var shim = global.unexpected.shim; | ||
var shim = namespace.shim; | ||
var json = shim.JSON; | ||
@@ -327,3 +324,3 @@ var getKeys = shim.getKeys; | ||
var utils = global.unexpected.utils; | ||
var utils = namespace.utils; | ||
var isDOMElement = utils.isDOMElement; | ||
@@ -530,11 +527,10 @@ var getOuterHTML = utils.getOuterHTML; | ||
global.unexpected.inspect = inspect; | ||
namespace.inspect = inspect; | ||
}()); | ||
(function () { | ||
var global = this; | ||
var unexpected = global.unexpected; | ||
var inspect = unexpected.inspect; | ||
var equal = unexpected.equal; | ||
var inspect = namespace.inspect; | ||
var equal = namespace.equal; | ||
var shim = unexpected.shim; | ||
var shim = namespace.shim; | ||
var bind = shim.bind; | ||
@@ -548,3 +544,3 @@ var forEach = shim.forEach; | ||
var utils = unexpected.utils; | ||
var utils = namespace.utils; | ||
var truncateStack = utils.truncateStack; | ||
@@ -845,10 +841,9 @@ var extend = utils.extend; | ||
global.unexpected.expect = Unexpected.create(); | ||
namespace.expect = Unexpected.create(); | ||
}()); | ||
(function () { | ||
var global = this; | ||
var unexpected = global.unexpected; | ||
var expect = unexpected.expect; | ||
var expect = namespace.expect; | ||
var shim = unexpected.shim; | ||
var shim = namespace.shim; | ||
var forEach = shim.forEach; | ||
@@ -859,3 +854,3 @@ var getKeys = shim.getKeys; | ||
var utils = unexpected.utils; | ||
var utils = namespace.utils; | ||
var isRegExp = utils.isRegExp; | ||
@@ -1233,5 +1228,6 @@ var isArray = utils.isArray; | ||
}()); | ||
(function () { | ||
var global = this; | ||
var expect = global.unexpected.expect; | ||
var expect = namespace.expect; | ||
@@ -1238,0 +1234,0 @@ // Support three module loading scenarios |
{ | ||
"name": "unexpected", | ||
"version": "2.1.4", | ||
"version": "2.1.6", | ||
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -0,7 +1,6 @@ | ||
/*global namespace*/ | ||
(function () { | ||
var global = this; | ||
var unexpected = global.unexpected; | ||
var expect = unexpected.expect; | ||
var expect = namespace.expect; | ||
var shim = unexpected.shim; | ||
var shim = namespace.shim; | ||
var forEach = shim.forEach; | ||
@@ -12,3 +11,3 @@ var getKeys = shim.getKeys; | ||
var utils = unexpected.utils; | ||
var utils = namespace.utils; | ||
var isRegExp = utils.isRegExp; | ||
@@ -15,0 +14,0 @@ var isArray = utils.isArray; |
@@ -0,8 +1,7 @@ | ||
/*global namespace*/ | ||
(function () { | ||
var global = this; | ||
var unexpected = global.unexpected; | ||
var inspect = unexpected.inspect; | ||
var equal = unexpected.equal; | ||
var inspect = namespace.inspect; | ||
var equal = namespace.equal; | ||
var shim = unexpected.shim; | ||
var shim = namespace.shim; | ||
var bind = shim.bind; | ||
@@ -16,3 +15,3 @@ var forEach = shim.forEach; | ||
var utils = unexpected.utils; | ||
var utils = namespace.utils; | ||
var truncateStack = utils.truncateStack; | ||
@@ -313,3 +312,3 @@ var extend = utils.extend; | ||
global.unexpected.expect = Unexpected.create(); | ||
namespace.expect = Unexpected.create(); | ||
}()); |
@@ -0,8 +1,7 @@ | ||
/*global namespace*/ | ||
(function () { | ||
var global = this; | ||
var unexpected = global.unexpected; | ||
var shim = unexpected.shim; | ||
var shim = namespace.shim; | ||
var getKeys = shim.getKeys; | ||
var utils = unexpected.utils; | ||
var utils = namespace.utils; | ||
var isRegExp = utils.isRegExp; | ||
@@ -101,3 +100,3 @@ var isArguments = utils.isArguments; | ||
global.unexpected.equal = equal; | ||
namespace.equal = equal; | ||
}()); |
@@ -0,6 +1,6 @@ | ||
/*global namespace*/ | ||
(function () { | ||
var global = this; | ||
global.unexpected.shim = { | ||
namespace.shim = { | ||
every: function (arr, fn, thisObj) { | ||
var scope = thisObj || global; | ||
var scope = thisObj || null; | ||
for (var i = 0, j = arr.length; i < j; i += 1) { | ||
@@ -7,0 +7,0 @@ if (!fn.call(scope, arr[i], i, arr)) { |
@@ -0,5 +1,5 @@ | ||
/*global namespace*/ | ||
(function () { | ||
var global = this; | ||
global.unexpected.shim = global.unexpected.shim || {}; | ||
var shim = global.unexpected.shim; | ||
namespace.shim = namespace.shim || {}; | ||
var shim = namespace.shim; | ||
@@ -6,0 +6,0 @@ var prototypes = { |
@@ -0,4 +1,4 @@ | ||
/*global namespace*/ | ||
(function () { | ||
var global = this; | ||
var shim = global.unexpected.shim; | ||
var shim = namespace.shim; | ||
var json = shim.JSON; | ||
@@ -10,3 +10,3 @@ var getKeys = shim.getKeys; | ||
var utils = global.unexpected.utils; | ||
var utils = namespace.utils; | ||
var isDOMElement = utils.isDOMElement; | ||
@@ -213,3 +213,3 @@ var getOuterHTML = utils.getOuterHTML; | ||
global.unexpected.inspect = inspect; | ||
namespace.inspect = inspect; | ||
}()); |
@@ -0,4 +1,5 @@ | ||
/*global namespace*/ | ||
(function () { | ||
var global = this; | ||
var expect = global.unexpected.expect; | ||
var expect = namespace.expect; | ||
@@ -5,0 +6,0 @@ // Support three module loading scenarios |
@@ -1,4 +0,2 @@ | ||
(function () { | ||
var global = this; | ||
global.unexpected = {}; | ||
}()); | ||
/*exported namespace*/ | ||
var namespace = {}; |
@@ -0,4 +1,4 @@ | ||
/*global namespace*/ | ||
(function () { | ||
var global = this; | ||
var shim = global.unexpected.shim; | ||
var shim = namespace.shim; | ||
var forEach = shim.forEach; | ||
@@ -139,3 +139,3 @@ var getKeys = shim.getKeys; | ||
global.unexpected.utils = utils; | ||
namespace.utils = utils; | ||
}()); |
Sorry, the diff of this file is too big to display
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
255917
5014