mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Cleanup this binding test labels.
This commit is contained in:
12
test/test.js
12
test/test.js
@@ -1167,7 +1167,7 @@
|
|||||||
assert.strictEqual(after(NaN, 1), 1);
|
assert.strictEqual(after(NaN, 1), 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
QUnit.test('should not set a `this` binding', function(assert) {
|
QUnit.test('should use `this` binding of function', function(assert) {
|
||||||
assert.expect(2);
|
assert.expect(2);
|
||||||
|
|
||||||
var after = _.after(1, function(assert) { return ++this.count; }),
|
var after = _.after(1, function(assert) { return ++this.count; }),
|
||||||
@@ -1700,7 +1700,7 @@
|
|||||||
assert.strictEqual(before(NaN, 1), 0);
|
assert.strictEqual(before(NaN, 1), 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
QUnit.test('should not set a `this` binding', function(assert) {
|
QUnit.test('should use `this` binding of function', function(assert) {
|
||||||
assert.expect(2);
|
assert.expect(2);
|
||||||
|
|
||||||
var before = _.before(2, function(assert) { return ++this.count; }),
|
var before = _.before(2, function(assert) { return ++this.count; }),
|
||||||
@@ -3838,7 +3838,7 @@
|
|||||||
assert.strictEqual(new curried(true), object);
|
assert.strictEqual(new curried(true), object);
|
||||||
});
|
});
|
||||||
|
|
||||||
QUnit.test('should not set a `this` binding', function(assert) {
|
QUnit.test('should use `this` binding of function', function(assert) {
|
||||||
assert.expect(9);
|
assert.expect(9);
|
||||||
|
|
||||||
var fn = function(a, b, c) {
|
var fn = function(a, b, c) {
|
||||||
@@ -3997,7 +3997,7 @@
|
|||||||
assert.strictEqual(new curried(true), object);
|
assert.strictEqual(new curried(true), object);
|
||||||
});
|
});
|
||||||
|
|
||||||
QUnit.test('should not set a `this` binding', function(assert) {
|
QUnit.test('should use `this` binding of function', function(assert) {
|
||||||
assert.expect(9);
|
assert.expect(9);
|
||||||
|
|
||||||
var fn = function(a, b, c) {
|
var fn = function(a, b, c) {
|
||||||
@@ -25323,7 +25323,7 @@
|
|||||||
assert.deepEqual(actual, expected);
|
assert.deepEqual(actual, expected);
|
||||||
});
|
});
|
||||||
|
|
||||||
QUnit.test('should not set a `this` binding', function(assert) {
|
QUnit.test('should use `this` binding of function', function(assert) {
|
||||||
assert.expect(1);
|
assert.expect(1);
|
||||||
|
|
||||||
var p = _.wrap(_.escape, function(func) {
|
var p = _.wrap(_.escape, function(func) {
|
||||||
@@ -26684,7 +26684,7 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
QUnit.test('should not set a `this` binding', function(assert) {
|
QUnit.test('should use `this` binding of function', function(assert) {
|
||||||
assert.expect(30);
|
assert.expect(30);
|
||||||
|
|
||||||
lodashStable.each(noBinding, function(methodName) {
|
lodashStable.each(noBinding, function(methodName) {
|
||||||
|
|||||||
Reference in New Issue
Block a user