-
Notifications
You must be signed in to change notification settings - Fork 76
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
add local-expires #35
base: master
Are you sure you want to change the base?
Conversation
You can set localstorage expiration time, defaults to 10 years
}); | ||
|
||
describe('Lockr.set', function () { | ||
it('saves a key-value pair in the localStorage', function () { | ||
describe('Lockr.set', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lamentchina please add a functional test using set
and expire-time argument.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, I will add a test after "describe 'with pre-existing data' "
Wow great work! What happens when expiration time is up? Should we remove the object entirely from |
add the test for expiration time
merge tsironis/master
@eavgerinos can you do an additional code review so we merge it to master? |
We can set localstorage expiration time, defaults to 10 years.