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

jest-localstorage-mock

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-localstorage-mock - npm Package Compare versions

Comparing version 2.4.21 to 2.4.22

2

package.json
{
"name": "jest-localstorage-mock",
"version": "2.4.21",
"version": "2.4.22",
"description": "Auto mock all localstorage and sessionstorage APIs for your Jest tests",

@@ -5,0 +5,0 @@ "main": "dist/setup.js",

@@ -10,3 +10,3 @@ export class LocalStorage {

// not mentioned in the spec, but we must always coerce to a string
value: jest.fn((key, val = '') => {
value: jest.fn((key, val) => {
this[key] = val + '';

@@ -13,0 +13,0 @@ }),

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