diff options
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 ); |