diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js
index f4cba12ec19..c591097f4a8 100644
--- a/spec/api-browser-window-spec.js
+++ b/spec/api-browser-window-spec.js
@@ -1697,10 +1697,8 @@ describe('BrowserWindow module', () => {
           done()
         })
         w.loadURL(`file://${path.join(fixtures, 'api', 'native-window-open-iframe.html')}`)
-      })
-      it('loads native addons correctly after reload', (done) => {
-        if (!nativeModulesEnabled) return done()
-
+      });
+      (nativeModulesEnabled ? it : it.skip)('loads native addons correctly after reload', (done) => {
         ipcMain.once('answer', (event, content) => {
           assert.equal(content, 'function')
           ipcMain.once('answer', (event, content) => {
diff --git a/spec/modules-spec.js b/spec/modules-spec.js
index b996b8f4839..7e89895daae 100644
--- a/spec/modules-spec.js
+++ b/spec/modules-spec.js
@@ -11,9 +11,7 @@ describe('modules support', () => {
   const fixtures = path.join(__dirname, 'fixtures')
 
   describe('third-party module', () => {
-    describe('runas', () => {
-      if (!nativeModulesEnabled) return
-
+    (nativeModulesEnabled ? describe : describe.skip)('runas', () => {
       it('can be required in renderer', () => {
         require('runas')
       })
diff --git a/spec/webview-spec.js b/spec/webview-spec.js
index db75a4e3754..fbbe137b4e9 100644
--- a/spec/webview-spec.js
+++ b/spec/webview-spec.js
@@ -204,14 +204,9 @@ describe('<webview> tag', function () {
         allowpopups: 'on',
         src
       })
-    })
-
-    it('loads native modules when navigation happens', async function () {
-      if (!nativeModulesEnabled) {
-        this.skip()
-        return
-      }
+    });
 
+    (nativeModulesEnabled ? it : it.skip)('loads native modules when navigation happens', async function () {
       await loadWebView(webview, {
         nodeintegration: 'on',
         src: `file://${fixtures}/pages/native-module.html`