mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-24 05:21:54 +00:00
Make eslint happy
This commit is contained in:
parent
f0fd0d4308
commit
4dc0403c58
@ -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';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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(() => {
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user