Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mock-browser

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mock-browser - npm Package Compare versions

Comparing version 0.90.18 to 0.90.19

2

package.json
{
"name": "mock-browser",
"version": "0.90.18",
"version": "0.90.19",
"description": "A mock browser with window, document, location, navigation, local and session storage to use for client side code tests in a node environment.",

@@ -5,0 +5,0 @@ "repository": {

@@ -30,10 +30,9 @@ #Mock Browser

// and in the run-code
// and in the run-code inside some object
var doc = mock.getDocument(),
div = doc.createElement('div');
var doc = mock.getDocument();
var div = doc.createElement('div');
var localStorage = doc.getLocalStorage();
localStorage.setItem('mykey', 'my value');
assert localStorage.getItem('mykey') === 'my value';
var storage = mock.getLocalStorage();
storage.setItem('mykey', 'my value');
assert storage.getItem('mykey') === 'my value';
~~~

@@ -150,2 +149,2 @@

- - -
<p><small><em>copyright © 2014 rain city software | version 0.90.18</em></small></p>
<p><small><em>copyright © 2014 rain city software | version 0.90.19</em></small></p>
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc