Clean up initialization of attachments tests
This commit is contained in:
parent
67663497ec
commit
75bcfcb685
1 changed files with 2 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue