Use closeWindow helper
This commit is contained in:
parent
0a7dccbad8
commit
b942c54bea
1 changed files with 3 additions and 3 deletions
|
@ -46,7 +46,7 @@ describe('chromium feature', function () {
|
||||||
var w = null
|
var w = null
|
||||||
|
|
||||||
afterEach(function () {
|
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) {
|
it('is set correctly when window is not shown', function (done) {
|
||||||
|
@ -157,7 +157,7 @@ describe('chromium feature', function () {
|
||||||
var w = null
|
var w = null
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
w != null ? w.destroy() : void 0
|
return closeWindow(w).then(() => w = null)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should register for file scheme', function (done) {
|
it('should register for file scheme', function (done) {
|
||||||
|
@ -312,7 +312,7 @@ describe('chromium feature', function () {
|
||||||
let w = null
|
let w = null
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
if (w) w.destroy()
|
return closeWindow(w).then(() => w = null)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('is null for main window', function (done) {
|
it('is null for main window', function (done) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue