{"library":"jasmine-local-storage","type":"library","category":null,"description":"Mock localStorage in Jasmine 2.x tests. Version 1.1.2 is the latest stable, compatible with Jasmine >=2 and <5. It provides simple `mockLocalStorage()` and `unmockLocalStorage()` functions that replace the global localStorage with a spy-based mock, allowing assertions on calls like `setItem`, `getItem`, etc. Unlike full localStorage polyfills, this package integrates directly with Jasmine's spy framework, enabling call-count checks and clean state between tests. Low maintenance; last release 2021.","language":"javascript","status":"maintenance","version":"1.1.2","tags":["javascript","jasmine","mock","localstorage","local","storage"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install jasmine-local-storage","imports":["import 'jasmine-local-storage'; // then use mockLocalStorage()","import 'jasmine-local-storage'; // then use unmockLocalStorage()","require('jasmine-local-storage'); // then use mockLocalStorage()"]},{"cmd":"yarn add jasmine-local-storage","imports":[]},{"cmd":"pnpm add jasmine-local-storage","imports":[]}],"homepage":"https://github.com/UziTech/jasmine-local-storage#readme","github":"https://github.com/UziTech/jasmine-local-storage","docs":null,"changelog":null,"pypi":null,"npm":"jasmine-local-storage","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}