From 492caa4fd2ce1145d735b993f09bf64b88bcd5e1 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 1 Oct 2016 23:34:45 -0700 Subject: [PATCH] Add `_.isFunction` test for the `Proxy` constructor. --- test/test.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index ba4a4c136..c510af1ea 100644 --- a/test/test.js +++ b/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);