From ce6c83f710c28108ccb4d50a7b924baa890dc961 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Fri, 8 Apr 2016 13:51:32 +0300 Subject: [PATCH] Core: add test for `jQuery.isPlainObject(localStorage)` Ref gh-3045 --- test/unit/core.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/unit/core.js b/test/unit/core.js index f18ad2e82..a42346d00 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -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 );