Fix sync tests

This commit is contained in:
Dan Stillman 2016-01-17 17:56:38 -05:00
parent e873617890
commit b3e14644f2
2 changed files with 48 additions and 0 deletions

View file

@ -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;