mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37: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,
|
||||
Buffer = root.Buffer,
|
||||
Promise = root.Promise,
|
||||
Map = root.Map,
|
||||
Promise = root.Promise,
|
||||
Proxy = root.Proxy,
|
||||
Set = root.Set,
|
||||
Symbol = root.Symbol,
|
||||
Uint8Array = root.Uint8Array,
|
||||
@@ -10522,6 +10523,17 @@
|
||||
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) {
|
||||
assert.expect(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user