mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
parent
32cfc38a9c
commit
9090d98439
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user