diff options
author | Liza Ramo <liza.h.ramo@gmail.com> | 2015-10-18 15:00:38 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2015-10-18 15:12:13 -0400 |
commit | 9090d98439f8dc449beafee98f8ff35cfb4f9116 (patch) | |
tree | f00df9c10e3bdbef93674846e37958b8a2e47caa /test | |
parent | 32cfc38a9c76d1f9163759c811cb9c82eb47d565 (diff) | |
download | jquery-9090d98439f8dc449beafee98f8ff35cfb4f9116.tar.gz jquery-9090d98439f8dc449beafee98f8ff35cfb4f9116.zip |
Core: add unit test for isPlainObject(Symbol)
Fixes #2645
Closes #2661
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/core.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/core.js b/test/unit/core.js index 26602dcb2..36504855d 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -353,6 +353,15 @@ QUnit.asyncTest( "isPlainObject", function( assert ) { } } ); +// +QUnit[ typeof Symbol === "function" ? "test" : "skip" ]( "isPlainObject(Symbol)", function( assert ) { + assert.expect( 2 ); + + assert.equal( jQuery.isPlainObject( Symbol() ), false, "Symbol" ); + assert.equal( jQuery.isPlainObject( Object( Symbol() ) ), false, "Symbol inside an object" ); +} ); + + QUnit.test( "isFunction", function( assert ) { assert.expect( 19 ); |