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.16 to 0.90.17

2

package.json
{
"name": "mock-browser",
"version": "0.90.16",
"version": "0.90.17",
"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": {

@@ -24,3 +24,3 @@ #Mock Browser

The use case is you have a browserify client project and unit tests need to provide a mechanism for client modules to access the window, document, location, etc. The best way to simulate this is to use a proxy wall between the normally global browser objects a require the application to get instances of window, document, etc. That way you can supply a mock for all of these objects with a common interface (AbstractBrowser). It looks like this...
The typical use case is a browserify project with unit tests that need to provide access to browser globals like window, document, location, etc. The best way to simulate this is to use a proxy wall between the normally global browser objects a require the application to get instances of window, document, etc. That way you can supply a mock for all of these objects with a common interface (AbstractBrowser). It looks like this...

@@ -150,2 +150,2 @@ ~~~

- - -
<p><small><em>copyright © 2014 rain city software | version 0.90.16</em></small></p>
<p><small><em>copyright © 2014 rain city software | version 0.90.17</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