diff --git a/tests-new/bridge/env/node/vm.js b/tests-new/bridge/env/node/vm.js index 22523f5c..0801c5da 100644 --- a/tests-new/bridge/env/node/vm.js +++ b/tests-new/bridge/env/node/vm.js @@ -91,7 +91,7 @@ module.exports = { case EXECUTE: { const script = await getBundle(request); - if (global.bridge.context == null) { + if (global.bridge.context === null) { throw new Error('VM context was not prepared.'); } if (request.inject) { @@ -109,7 +109,7 @@ module.exports = { let returnValue = [[], [], [], 0]; try { if ( - global.bridge.context != null && + global.bridge.context !== null && typeof global.bridge.context.__fbBatchedBridge === 'object' ) { returnValue = global.bridge.context.__fbBatchedBridge[method].apply(