Fix sync tests
This commit is contained in:
parent
e873617890
commit
b3e14644f2
2 changed files with 48 additions and 0 deletions
|
@ -23,6 +23,11 @@ describe("Zotero.Sync.Data.Local", function() {
|
|||
|
||||
describe("#getLatestCacheObjectVersions", function () {
|
||||
before(function* () {
|
||||
yield resetDB({
|
||||
thisArg: this,
|
||||
skipBundledFiles: true
|
||||
});
|
||||
|
||||
yield Zotero.Sync.Data.Local.saveCacheObjects(
|
||||
'item',
|
||||
Zotero.Libraries.userLibraryID,
|
||||
|
@ -87,6 +92,13 @@ describe("Zotero.Sync.Data.Local", function() {
|
|||
describe("#processSyncCacheForObjectType()", function () {
|
||||
var types = Zotero.DataObjectUtilities.getTypes();
|
||||
|
||||
before(function* () {
|
||||
yield resetDB({
|
||||
thisArg: this,
|
||||
skipBundledFiles: true
|
||||
});
|
||||
})
|
||||
|
||||
it("should update local version number and mark as synced if remote version is identical", function* () {
|
||||
var libraryID = Zotero.Libraries.userLibraryID;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue