8000 Add `_.isFunction` test for the `Proxy` constructor. · lodash/lodash@492caa4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 492caa4

Browse files
committed
Add _.isFunction test for the Proxy constructor.
1 parent 01c0950 commit 492caa4

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

test/test.js

+13-1
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@
6363

6464
var ArrayBuffer = root.ArrayBuffer,
6565
Buffer = root.Buffer,
66-
Promise = root.Promise,
6766
Map = root.Map,
67+
Promise = root.Promise,
68+
Proxy = root.Proxy,
6869
Set = root.Set,
6970
Symbol = root.Symbol,
7071
Uint8Array = root.Uint8Array,
@@ -10522,6 +10523,17 @@
1052210523
assert.strictEqual(_.isFunction(generator), typeof generator == 'function');
1052310524
});
1052410525

10526+
QUnit.test('should return `true` for the `Proxy` constructor', function(assert) {
10527+
assert.expect(1);
10528+
10529+
if (Proxy) {
10530+
assert.strictEqual(_.isFunction(Proxy), true);
10531+
}
10532+
else {
10533+
skipAssert(assert);
10534+
}
10535+
});
10536+
1052510537
QUnit.test('should return `true` for array view constructors', function(assert) {
1052610538
assert.expect(1);
1052710539

0 commit comments

Comments
 (0)
0