mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Core: add unit test for isPlainObject(Symbol)
Fixes #2645
Closes #2661
(cherry picked from commit 9090d98439
)
This commit is contained in:
parent
214e1634ab
commit
d3a2fdce97
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user