Permalink
Browse files

Core: add unit test for isPlainObject(Symbol)

Fixes #2645
Closes #2661
(cherry picked from commit 9090d98)
  • Loading branch information...
LizaLemons authored and dmethvin committed Oct 18, 2015
1 parent 214e163 commit d3a2fdce9773ec688ffe50e94bce9e7f4140ad6a
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/unit/core.js
View
@@ -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 ) {
assert.expect( 19 );

0 comments on commit d3a2fdc

Please sign in to comment.