window-mock
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -14,4 +14,5 @@ 'use strict'; | ||
this.hash = ''; | ||
this.pathname = ''; | ||
}; | ||
exports.default = WindowLocationMock; |
{ | ||
"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(); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28514
633