Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't convert values to strings before storing #35

Closed
shai32 opened this issue Sep 22, 2017 · 1 comment · Fixed by #37
Closed

Doesn't convert values to strings before storing #35

shai32 opened this issue Sep 22, 2017 · 1 comment · Fixed by #37

Comments

@shai32
Copy link

shai32 commented Sep 22, 2017

localstorage does not support setting objects. (it save them as "[object Object]")
so the mock should act the same

@clarkbw
Copy link
Owner

clarkbw commented Sep 26, 2017

Oh right, I think it runs a toString method on value being passed.

@clarkbw clarkbw changed the title not acts like a real localstorage Doesn't convert values to strings before storing Sep 26, 2017
clarkbw pushed a commit that referenced this issue Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants