Fix another cause of syncEventListener test failure
This commit is contained in:
parent
e8b19934e2
commit
903fc4d9a7
1 changed files with 2 additions and 0 deletions
|
@ -82,7 +82,9 @@ describe("Zotero.Sync.EventListeners", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should auto-sync after settings change", async function () {
|
it("should auto-sync after settings change", async function () {
|
||||||
|
Zotero.Prefs.set('sync.autoSync', false);
|
||||||
var attachment = await importFileAttachment('test.pdf');
|
var attachment = await importFileAttachment('test.pdf');
|
||||||
|
Zotero.Prefs.set('sync.autoSync', true);
|
||||||
|
|
||||||
var mock = sinon.mock(Zotero.Sync.Runner);
|
var mock = sinon.mock(Zotero.Sync.Runner);
|
||||||
var expectation = mock.expects("setSyncTimeout").once();
|
var expectation = mock.expects("setSyncTimeout").once();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue