mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Core: add test for jQuery.isPlainObject(localStorage)
Ref gh-3045
This commit is contained in:
parent
91850ecbbe
commit
ce6c83f710
@ -382,6 +382,12 @@ QUnit[ typeof Symbol === "function" ? "test" : "skip" ]( "isPlainObject(Symbol)"
|
||||
assert.equal( jQuery.isPlainObject( Object( Symbol() ) ), false, "Symbol inside an object" );
|
||||
} );
|
||||
|
||||
QUnit.test( "isPlainObject(localStorage)", function( assert ) {
|
||||
assert.expect( 1 );
|
||||
|
||||
assert.equal( jQuery.isPlainObject( localStorage ), false );
|
||||
} );
|
||||
|
||||
QUnit[ "assign" in Object ? "test" : "skip" ]( "isPlainObject(Object.assign(...))",
|
||||
function( assert ) {
|
||||
assert.expect( 1 );
|
||||
|
Loading…
Reference in New Issue
Block a user