From 75bcfcb685448da6c59e7c3a6f2f91db5a666012 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 1 Jun 2015 20:03:40 -0400 Subject: [PATCH] Clean up initialization of attachments tests --- test/tests/attachmentsTest.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/tests/attachmentsTest.js b/test/tests/attachmentsTest.js index 0f45e5bfa..4eb283488 100644 --- 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) {