Full-text syncing support via API [DB reupgrade]
This commit is contained in:
parent
cb81f3febd
commit
62aeb1da32
13 changed files with 855 additions and 130 deletions
|
@ -478,7 +478,7 @@ describe("Zotero.Sync.Runner", function () {
|
|||
});
|
||||
})
|
||||
|
||||
it("should perform a sync across all libraries", function* () {
|
||||
it("should perform a sync across all libraries and update library versions", function* () {
|
||||
yield Zotero.Users.setCurrentUserID(1);
|
||||
yield Zotero.Users.setCurrentUsername("A");
|
||||
|
||||
|
@ -652,6 +652,43 @@ describe("Zotero.Sync.Runner", function () {
|
|||
},
|
||||
json: []
|
||||
});
|
||||
// Full-text syncing
|
||||
setResponse({
|
||||
method: "GET",
|
||||
url: "users/1/fulltext",
|
||||
status: 200,
|
||||
headers: {
|
||||
"Last-Modified-Version": 5
|
||||
},
|
||||
json: {}
|
||||
});
|
||||
setResponse({
|
||||
method: "GET",
|
||||
url: "users/1/publications/fulltext",
|
||||
status: 200,
|
||||
headers: {
|
||||
"Last-Modified-Version": 10
|
||||
},
|
||||
json: {}
|
||||
});
|
||||
setResponse({
|
||||
method: "GET",
|
||||
url: "groups/1623562/fulltext",
|
||||
status: 200,
|
||||
headers: {
|
||||
"Last-Modified-Version": 15
|
||||
},
|
||||
json: {}
|
||||
});
|
||||
setResponse({
|
||||
method: "GET",
|
||||
url: "groups/2694172/fulltext",
|
||||
status: 200,
|
||||
headers: {
|
||||
"Last-Modified-Version": 20
|
||||
},
|
||||
json: {}
|
||||
});
|
||||
|
||||
yield runner.sync({
|
||||
onError: e => { throw e },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue