mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 12:45:04 -05:00
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user