Browse Source

test: fix nativeModulesEnabled in spec/webview-spec.js (#34065)

Co-authored-by: Milan Burda <[email protected]>
trop[bot] 3 years ago
parent
commit
4de4d8c23e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spec/webview-spec.js

+ 1 - 1
spec/webview-spec.js

@@ -7,7 +7,7 @@ const { emittedOnce, waitForEvent } = require('./events-helpers');
 const { ifdescribe, ifit, delay } = require('./spec-helpers');
 
 const features = process._linkedBinding('electron_common_features');
-const nativeModulesEnabled = process.env.ELECTRON_SKIP_NATIVE_MODULE_TESTS;
+const nativeModulesEnabled = !process.env.ELECTRON_SKIP_NATIVE_MODULE_TESTS;
 
 /* Most of the APIs here don't use standard callbacks */
 /* eslint-disable standard/no-callback-literal */