mock-browser
Advanced tools
Comparing version 0.90.18 to 0.90.19
{ | ||
"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> |
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
23113
149