masakudamatsu / line-height-picker

A front-end web app that helps web designers/developers pick the best line-height value for their websites
https://line-height-picker.vercel.app
MIT License
2 stars 1 forks source link

Test store.js or sessionStorage #140

Open masakudamatsu opened 4 years ago

masakudamatsu commented 4 years ago

We need to figure out how to test the fallback behavior.

How to mock sessionStorage.setItem() to throw error? This may be helpful: https://www.npmjs.com/package/jest-localstorage-mock