diff --git a/test/unit/core.js b/test/unit/core.js index e8202accd1..a08ecf0c12 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -355,6 +355,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 );