var w = null
afterEach(function () {
- w != null ? w.destroy() : void 0
+ return closeWindow(w).then(() => w = null)
})
it('is set correctly when window is not shown', function (done) {
var w = null
afterEach(function () {
- w != null ? w.destroy() : void 0
+ return closeWindow(w).then(() => w = null)
})
it('should register for file scheme', function (done) {
let w = null
afterEach(function () {
- if (w) w.destroy()
+ return closeWindow(w).then(() => w = null)
})
it('is null for main window', function (done) {