Core: add unit test for isPlainObject(Symbol)

Fixes #2645
Closes #2661
This commit is contained in:
Liza Ramo 2015-10-18 15:00:38 -04:00 committed by Dave Methvin
parent 32cfc38a9c
commit 9090d98439

View File

@ -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 ) { QUnit.test( "isFunction", function( assert ) {
assert.expect( 19 ); assert.expect( 19 );