www

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

commit 75bcfcb685448da6c59e7c3a6f2f91db5a666012
parent 67663497ec222b5397d2091110ce3419bf31a830
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon,  1 Jun 2015 20:03:40 -0400

Clean up initialization of attachments tests

Diffstat:
Mtest/tests/attachmentsTest.js | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/test/tests/attachmentsTest.js b/test/tests/attachmentsTest.js @@ -1,12 +1,10 @@ describe("Zotero.Attachments", function() { var win; - before(function () { + before(function* () { // Hidden browser, which requires a browser window, needed for charset detection // (until we figure out a better way) - if (!Zotero.isStandalone) { - return loadBrowserWindow().then(window => win = window); - } + win = yield loadBrowserWindow(); }); after(function () { if (win) {