www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c0f7f6070a9929ec942ebea49f345ef48add0327
parent e1fb28faa91da4b50539b3edaf3443b4cb79cc7c
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 23 May 2017 02:11:09 -0400

Avoid a warning from a storageRequest test from the item not existing

Diffstat:
Mtest/tests/storageRequestTest.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/tests/storageRequestTest.js b/test/tests/storageRequestTest.js @@ -5,10 +5,11 @@ describe("Zotero.Sync.Storage.Request", function () { it("should run a request and wait for it to complete", function* () { var libraryID = Zotero.Libraries.userLibraryID; var count = 0; + var item = yield importFileAttachment('test.png'); var request = new Zotero.Sync.Storage.Request({ type: 'download', libraryID, - name: "1/AAAAAAAA", + name: `${item.libraryID}/${item.key}`, onStart: Zotero.Promise.coroutine(function* () { yield Zotero.Promise.delay(25); count++;