mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 14:54:33 +00:00
Fix showing syntax errors in sync test files
This commit is contained in:
parent
6cd8eefe5d
commit
4073730259
@ -35,11 +35,16 @@ if (!(typeof process === 'object' && process.platform === 'win32')) {
|
||||
}
|
||||
|
||||
// If sync is enabled, run the user tests
|
||||
let hasSync = false;
|
||||
try {
|
||||
Realm.Sync; // This will throw if Sync is disabled.
|
||||
hasSync = true;
|
||||
} catch (e) { }
|
||||
|
||||
if (hasSync) {
|
||||
TESTS.UserTests = require('./user-tests');
|
||||
TESTS.SessionTests = require('./session-tests');
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
function node_require(module) { return require(module); }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user