Commit 8e4823fd authored by Donald Cook's avatar Donald Cook

Accounted for reset of lockVersionKey

parent f4994b8d
......@@ -215,6 +215,7 @@ describe('Autosave', () => {
beforeEach(() => {
autosave = {
key,
lockVersionKey,
};
});
......@@ -239,6 +240,7 @@ describe('Autosave', () => {
it('should call .removeItem', () => {
expect(window.localStorage.removeItem).toHaveBeenCalledWith(key);
expect(window.localStorage.removeItem).toHaveBeenCalledWith(lockVersionKey);
});
});
});
......@@ -249,8 +251,8 @@ describe('Autosave', () => {
field,
key,
fallbackKey,
isLocalStorageAvailable: true,
};
autosave.isLocalStorageAvailable = true;
});
it('should call .getItem', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment