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

This commit is contained in:
Milan Burda 2022-05-04 08:56:45 +02:00 committed by GitHub
parent 747dfe5851
commit 349cd98b0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 */