Make eslint happy

This commit is contained in:
Kristian Dupont 2016-12-29 10:53:51 +01:00
parent f0fd0d4308
commit 4dc0403c58
4 changed files with 6 additions and 4 deletions

View File

@ -30,11 +30,11 @@ function getContext() {
} }
if (typeof navigator !== 'undefined') { if (typeof navigator !== 'undefined') {
if (navigator.product === 'ReactNative') { if (navigator.product === 'ReactNative') { // eslint-disable-line no-undef
return 'reactnative'; return 'reactnative';
} }
if (/Chrome/.test(navigator.userAgent)) { if (/Chrome/.test(navigator.userAgent)) { // eslint-disable-line no-undef
return 'chromedebugger'; return 'chromedebugger';
} }
} }

View File

@ -29,7 +29,7 @@ function createNotificationTest(config, getObservable, addListener, removeListen
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let realm = new Realm(config); let realm = new Realm(config);
let observable = getObservable(realm); let observable = getObservable(realm);
let worker = new Worker(__dirname + '/worker-tests-script.js', [REALM_MODULE_PATH]); let worker = new Worker(__dirname + '/worker-tests-script.js', [REALM_MODULE_PATH]); // eslint-disable-line no-undef
// Test will fail if it does not receive a change event within a second. // Test will fail if it does not receive a change event within a second.
let timer = setTimeout(() => { let timer = setTimeout(() => {

View File

@ -12,5 +12,5 @@ module.exports = function(realmModulePath) {
warnOnReplace: false, warnOnReplace: false,
warnOnUnregistered: false warnOnUnregistered: false
}); });
mockery.registerSubstitute('realm', REALM_MODULE_PATH); mockery.registerSubstitute('realm', REALM_MODULE_PATH); // eslint-disable-line no-undef
} }

View File

@ -1,3 +1,5 @@
'use strict';
const mock_helper = require('./mock_realm') const mock_helper = require('./mock_realm')
const path = require('path'); const path = require('path');