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
  • Loading branch information
LizaLemons authored and dmethvin committed Oct 18, 2015
1 parent 32cfc38 commit 9090d98
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/unit/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 9090d98

Please sign in to comment.