mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Minor test cleanup.
This commit is contained in:
@@ -2083,7 +2083,7 @@
|
|||||||
strictEqual(new curried(true), object);
|
strictEqual(new curried(true), object);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should not alter the `this` binding', 9, function() {
|
test('should not set a `this` binding', 9, function() {
|
||||||
function fn(a, b, c) {
|
function fn(a, b, c) {
|
||||||
var value = this || {};
|
var value = this || {};
|
||||||
return [value[a], value[b], value[c]];
|
return [value[a], value[b], value[c]];
|
||||||
@@ -2172,7 +2172,7 @@
|
|||||||
strictEqual(new curried(true), object);
|
strictEqual(new curried(true), object);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should not alter the `this` binding', 9, function() {
|
test('should not set a `this` binding', 9, function() {
|
||||||
function fn(a, b, c) {
|
function fn(a, b, c) {
|
||||||
var value = this || {};
|
var value = this || {};
|
||||||
return [value[a], value[b], value[c]];
|
return [value[a], value[b], value[c]];
|
||||||
@@ -7586,7 +7586,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
test('`_.' + methodName + '` should not alter the `this` binding', 3, function() {
|
test('`_.' + methodName + '` should not set a `this` binding', 3, function() {
|
||||||
var fn = function() { return this.a; },
|
var fn = function() { return this.a; },
|
||||||
object = { 'a': 1 };
|
object = { 'a': 1 };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user