Core: add unit test for isPlainObject(Symbol)

Fixes #2645
Closes #2661
(cherry picked from commit 9090d98439)
This commit is contained in:
Liza Ramo 2015-10-18 15:00:38 -04:00 committed by Dave Methvin
parent 214e1634ab
commit d3a2fdce97

View File

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