Purge old objects in sync cache after upload
This commit is contained in:
parent
aa1fc01b31
commit
5b0b874435
3 changed files with 25 additions and 1 deletions
|
@ -682,6 +682,10 @@ describe("Zotero.Sync.Data.Engine", function () {
|
|||
assert.isArray(cached.data.conditions);
|
||||
break;
|
||||
}
|
||||
|
||||
// Make sure older versions have been removed from the cache
|
||||
let versions = yield Zotero.Sync.Data.Local.getCacheObjectVersions(type, libraryID, key);
|
||||
assert.sameMembers(versions, [version]);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue