From b942c54bea59336726e45032d628ccd02dc7a215 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 4 Jan 2017 14:24:49 -0800 Subject: [PATCH] Use closeWindow helper --- spec/chromium-spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/chromium-spec.js b/spec/chromium-spec.js index 5d30181c2e74..88088e089b26 100644 --- a/spec/chromium-spec.js +++ b/spec/chromium-spec.js @@ -46,7 +46,7 @@ describe('chromium feature', function () { 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) { @@ -157,7 +157,7 @@ describe('chromium feature', function () { 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) { @@ -312,7 +312,7 @@ describe('chromium feature', function () { let w = null afterEach(function () { - if (w) w.destroy() + return closeWindow(w).then(() => w = null) }) it('is null for main window', function (done) {