Fix test breakage after 5ff2a59f87

And remove all instances of `publicationsLibraryID`
This commit is contained in:
Dan Stillman 2017-04-13 00:13:27 -04:00
parent 5ff2a59f87
commit 6d18b46165
8 changed files with 41 additions and 142 deletions

View file

@ -649,7 +649,7 @@ describe("Zotero.Sync.Data.Local", function() {
})
it("should roll back partial object changes on error", function* () {
var libraryID = Zotero.Libraries.publicationsLibraryID;
var libraryID = Zotero.Libraries.userLibraryID;
var key1 = "AAAAAAAA";
var key2 = "BBBBBBBB";
var json = [
@ -669,9 +669,8 @@ describe("Zotero.Sync.Data.Local", function() {
data: {
key: key2,
version: 1,
itemType: "journalArticle",
title: "Test B",
deleted: true // Not allowed in My Publications
itemType: "invalidType",
title: "Test B"
}
}
];
@ -693,7 +692,7 @@ describe("Zotero.Sync.Data.Local", function() {
before(function* () {
lib1 = Zotero.Libraries.userLibraryID;
lib2 = Zotero.Libraries.publicationsLibraryID;
lib2 = (yield getGroup()).libraryID;
});
beforeEach(function* () {