Permalink
Browse files

Core: add unit test for isPlainObject(Symbol)

Fixes #2645
Closes #2661
  • Loading branch information...
LizaLemons authored and dmethvin committed Oct 18, 2015
1 parent 32cfc38 commit 9090d98439f8dc449beafee98f8ff35cfb4f9116
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/unit/core.js
View
@@ -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 );

0 comments on commit 9090d98

Please sign in to comment.