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) {