Fix tests for the npm build.

This commit is contained in:
John-David Dalton
2014-09-02 00:34:35 -07:00
parent cbe504df77
commit aa60b8399b

View File

@@ -11739,6 +11739,7 @@
(function() { (function() {
test('should remove elements from the end of `array`', 4, function() { test('should remove elements from the end of `array`', 4, function() {
if (!isNpm) {
var wrapped = _([1, 2]); var wrapped = _([1, 2]);
strictEqual(wrapped.pop(), 2); strictEqual(wrapped.pop(), 2);
@@ -11746,6 +11747,10 @@
strictEqual(wrapped.pop(), 1); strictEqual(wrapped.pop(), 1);
deepEqual(wrapped.value(), []); deepEqual(wrapped.value(), []);
}
else {
skipTest(4);
}
}); });
}()); }());
@@ -11755,6 +11760,7 @@
(function() { (function() {
test('should remove elements from the front of `array`', 4, function() { test('should remove elements from the front of `array`', 4, function() {
if (!isNpm) {
var wrapped = _([1, 2]); var wrapped = _([1, 2]);
strictEqual(wrapped.shift(), 1); strictEqual(wrapped.shift(), 1);
@@ -11762,6 +11768,10 @@
strictEqual(wrapped.shift(), 2); strictEqual(wrapped.shift(), 2);
deepEqual(wrapped.value(), []); deepEqual(wrapped.value(), []);
}
else {
skipTest(4);
}
}); });
}()); }());
@@ -11771,6 +11781,7 @@
(function() { (function() {
test('should support removing and inserting elements', 4, function() { test('should support removing and inserting elements', 4, function() {
if (!isNpm) {
var wrapped = _([1, 2]); var wrapped = _([1, 2]);
deepEqual(wrapped.splice(1, 1, 3).value(), [2]); deepEqual(wrapped.splice(1, 1, 3).value(), [2]);
@@ -11778,6 +11789,10 @@
deepEqual(wrapped.splice(0, 2).value(), [1, 3]); deepEqual(wrapped.splice(0, 2).value(), [1, 3]);
deepEqual(wrapped.value(), []); deepEqual(wrapped.value(), []);
}
else {
skipTest(4);
}
}); });
}()); }());