Permalink
Browse files

Core: add test for `jQuery.isPlainObject(localStorage)`

  • Loading branch information...
1 parent 91850ec commit ce6c83f710c28108ccb4d50a7b924baa890dc961 @markelog markelog committed Apr 8, 2016
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/unit/core.js
View
@@ -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 );

0 comments on commit ce6c83f

Please sign in to comment.