Skip to content

Commit

Permalink
Core: add unit test for isPlainObject(Symbol)
Browse files Browse the repository at this point in the history
Fixes #2645
Closes #2661
(cherry picked from commit 9090d98)
  • Loading branch information
LizaLemons authored and dmethvin committed Oct 18, 2015
1 parent 214e163 commit d3a2fdc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/unit/core.js
Expand Up @@ -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 );


Expand Down

0 comments on commit d3a2fdc

Please sign in to comment.