Use 'a' for string tests instead of 'x'.

This commit is contained in:
John-David Dalton
2015-10-20 22:37:13 -07:00
parent 247c4f1068
commit 602e5d2766

View File

@@ -3252,7 +3252,7 @@
return value; return value;
}, 32, {}); }, 32, {});
assert.strictEqual(debounced('x'), undefined); assert.strictEqual(debounced('a'), undefined);
setTimeout(function() { setTimeout(function() {
assert.strictEqual(callCount, 1); assert.strictEqual(callCount, 1);
@@ -3278,10 +3278,10 @@
return value; return value;
}, 32, { 'leading': true }); }, 32, { 'leading': true });
assert.strictEqual(withLeading('x'), 'x'); assert.strictEqual(withLeading('a'), 'a');
var withoutLeading = _.debounce(identity, 32, { 'leading': false }); var withoutLeading = _.debounce(identity, 32, { 'leading': false });
assert.strictEqual(withoutLeading('x'), undefined); assert.strictEqual(withoutLeading('a'), undefined);
var withLeadingAndTrailing = _.debounce(function() { var withLeadingAndTrailing = _.debounce(function() {
callCounts[1]++; callCounts[1]++;
@@ -3295,7 +3295,7 @@
setTimeout(function() { setTimeout(function() {
assert.deepEqual(callCounts, [1, 2]); assert.deepEqual(callCounts, [1, 2]);
withLeading('x'); withLeading('a');
assert.strictEqual(callCounts[0], 2); assert.strictEqual(callCounts[0], 2);
done(); done();
@@ -3326,8 +3326,8 @@
return value; return value;
}, 32, { 'trailing': false }); }, 32, { 'trailing': false });
assert.strictEqual(withTrailing('x'), undefined); assert.strictEqual(withTrailing('a'), undefined);
assert.strictEqual(withoutTrailing('x'), undefined); assert.strictEqual(withoutTrailing('a'), undefined);
setTimeout(function() { setTimeout(function() {
assert.strictEqual(withCount, 1); assert.strictEqual(withCount, 1);
@@ -3844,7 +3844,7 @@
var disjed = _.disj(lodashStable.constant(false), lodashStable.constant(1), lodashStable.constant('')); var disjed = _.disj(lodashStable.constant(false), lodashStable.constant(1), lodashStable.constant(''));
assert.strictEqual(disjed(), true); assert.strictEqual(disjed(), true);
disjed = _.disj(lodashStable.constant(null), lodashStable.constant('x'), lodashStable.constant(0)); disjed = _.disj(lodashStable.constant(null), lodashStable.constant('a'), lodashStable.constant(0));
assert.strictEqual(disjed(), true); assert.strictEqual(disjed(), true);
}); });
@@ -9153,7 +9153,7 @@
// 2: Initial check with object, this is the other half of the trigger. // 2: Initial check with object, this is the other half of the trigger.
_.isObject(object); _.isObject(object);
assert.strictEqual(_.isObject('x'), false); assert.strictEqual(_.isObject('a'), false);
}); });
}(1, 2, 3)); }(1, 2, 3));
@@ -15672,7 +15672,7 @@
QUnit.test('should treat `start` as `0` for negative or `NaN` values', function(assert) { QUnit.test('should treat `start` as `0` for negative or `NaN` values', function(assert) {
assert.expect(1); assert.expect(1);
var values = [-1, NaN, 'x'], var values = [-1, NaN, 'a'],
expected = lodashStable.map(values, lodashStable.constant([[1, 2, 3, 4]])); expected = lodashStable.map(values, lodashStable.constant([[1, 2, 3, 4]]));
var actual = lodashStable.map(values, function(value) { var actual = lodashStable.map(values, function(value) {
@@ -16472,7 +16472,7 @@
assert.expect(2); assert.expect(2);
assert.strictEqual(_.some([false, 1, ''], identity), true); assert.strictEqual(_.some([false, 1, ''], identity), true);
assert.strictEqual(_.some([null, 'x', 0], identity), true); assert.strictEqual(_.some([null, 'a', 0], identity), true);
}); });
QUnit.test('should return `false` for empty collections', function(assert) { QUnit.test('should return `false` for empty collections', function(assert) {