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

window-mock

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

window-mock - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

1

lib/window-location-mock.js

@@ -14,4 +14,5 @@ 'use strict';

this.hash = '';
this.pathname = '';
};
exports.default = WindowLocationMock;

2

package.json
{
"name": "window-mock",
"version": "0.0.9",
"version": "0.0.10",
"description": "A light-weight window mock for Node/io.js unit-testing",

@@ -5,0 +5,0 @@ "main": "lib/window-mock.js",

@@ -6,2 +6,3 @@ class WindowLocationMock {

this.hash = '';
this.pathname = '';
}

@@ -8,0 +9,0 @@

@@ -20,1 +20,8 @@ import test from 'tape';

});
test(`${name}: window.location.pathname`, (t) => {
t.equal(typeof mock.pathname, 'string', 'pathname should be a String');
t.end();
});
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