Skip to content

Commit ce6c83f

Browse files
committed
Core: add test for jQuery.isPlainObject(localStorage)
Ref gh-3045
1 parent 91850ec commit ce6c83f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/unit/core.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,12 @@ QUnit[ typeof Symbol === "function" ? "test" : "skip" ]( "isPlainObject(Symbol)"
382382
assert.equal( jQuery.isPlainObject( Object( Symbol() ) ), false, "Symbol inside an object" );
383383
} );
384384

385+
QUnit.test( "isPlainObject(localStorage)", function( assert ) {
386+
assert.expect( 1 );
387+
388+
assert.equal( jQuery.isPlainObject( localStorage ), false );
389+
} );
390+
385391
QUnit[ "assign" in Object ? "test" : "skip" ]( "isPlainObject(Object.assign(...))",
386392
function( assert ) {
387393
assert.expect( 1 );

0 commit comments

Comments
 (0)