Browse Source

test: fix incorrect reference to skip (#17280)

trop[bot] 6 years ago
parent
commit
f53a9c1268
1 changed files with 5 additions and 3 deletions
  1. 5 3
      spec/api-browser-window-spec.js

+ 5 - 3
spec/api-browser-window-spec.js

@@ -3050,9 +3050,11 @@ describe('BrowserWindow module', () => {
   })
 
   describe('window.getNativeWindowHandle()', () => {
-    if (!nativeModulesEnabled) {
-      this.skip()
-    }
+    before(function () {
+      if (!nativeModulesEnabled) {
+        this.skip()
+      }
+    })
 
     it('returns valid handle', () => {
       // The module's source code is hosted at