mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Simplify [[Prototype]] test labels.
This commit is contained in:
@@ -20880,7 +20880,7 @@
|
|||||||
assert.ok(_.transform(new Foo) instanceof Foo);
|
assert.ok(_.transform(new Foo) instanceof Foo);
|
||||||
});
|
});
|
||||||
|
|
||||||
QUnit.test('should check that `object` is an object before using its `[[Prototype]]`', function(assert) {
|
QUnit.test('should ensure `object` is an object before using its `[[Prototype]]`', function(assert) {
|
||||||
assert.expect(2);
|
assert.expect(2);
|
||||||
|
|
||||||
var Ctors = [Boolean, Boolean, Number, Number, Number, String, String],
|
var Ctors = [Boolean, Boolean, Number, Number, Number, String, String],
|
||||||
@@ -20902,7 +20902,7 @@
|
|||||||
assert.deepEqual(actual, expected);
|
assert.deepEqual(actual, expected);
|
||||||
});
|
});
|
||||||
|
|
||||||
QUnit.test('should check that `object` constructor is a function before using its `[[Prototype]]`', function(assert) {
|
QUnit.test('should ensure `object` constructor is a function before using its `[[Prototype]]`', function(assert) {
|
||||||
assert.expect(1);
|
assert.expect(1);
|
||||||
|
|
||||||
Foo.prototype.constructor = null;
|
Foo.prototype.constructor = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user