You can mock pretty much anything with window.* in Jasmine. I think this thread might help you: https://groups.google.com/forum/?fromgroups#!topic/jasmine-js/1qjP-nDqAgUI've mocked both local and session storage, as well as window.confirm, so I see no reason why the solution in that thread wouldn't work.
--
You received this message because you are subscribed to the Google Groups "karma-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to karma-users...@googlegroups.com.
To post to this group, send email to karma...@googlegroups.com.
Visit this group at http://groups.google.com/group/karma-users.
For more options, visit https://groups.google.com/groups/opt_out.