diff --git a/spec/security-warnings-spec.js b/spec/security-warnings-spec.js index feac23db7e06..518df1243caa 100644 --- a/spec/security-warnings-spec.js +++ b/spec/security-warnings-spec.js @@ -54,9 +54,8 @@ describe('security warnings', () => { }) afterEach(() => { - closeWindow(w).then(() => { w = null }) - useCsp = true + return closeWindow(w).then(() => { w = null }) }) it('should warn about Node.js integration with remote content', (done) => {