mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Add _.isFunction test for the Proxy constructor.
This commit is contained in:
14
test/test.js
14
test/test.js
@@ -63,8 +63,9 @@
|
|||||||
|
|
||||||
var ArrayBuffer = root.ArrayBuffer,
|
var ArrayBuffer = root.ArrayBuffer,
|
||||||
Buffer = root.Buffer,
|
Buffer = root.Buffer,
|
||||||
Promise = root.Promise,
|
|
||||||
Map = root.Map,
|
Map = root.Map,
|
||||||
|
Promise = root.Promise,
|
||||||
|
Proxy = root.Proxy,
|
||||||
Set = root.Set,
|
Set = root.Set,
|
||||||
Symbol = root.Symbol,
|
Symbol = root.Symbol,
|
||||||
Uint8Array = root.Uint8Array,
|
Uint8Array = root.Uint8Array,
|
||||||
@@ -10522,6 +10523,17 @@
|
|||||||
assert.strictEqual(_.isFunction(generator), typeof generator == 'function');
|
assert.strictEqual(_.isFunction(generator), typeof generator == 'function');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
QUnit.test('should return `true` for the `Proxy` constructor', function(assert) {
|
||||||
|
assert.expect(1);
|
||||||
|
|
||||||
|
if (Proxy) {
|
||||||
|
assert.strictEqual(_.isFunction(Proxy), true);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
skipAssert(assert);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
QUnit.test('should return `true` for array view constructors', function(assert) {
|
QUnit.test('should return `true` for array view constructors', function(assert) {
|
||||||
assert.expect(1);
|
assert.expect(1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user