From 4f1d5e36a1c10602483a4ce1cccd465353523f9e Mon Sep 17 00:00:00 2001 From: blagoev Date: Thu, 16 Nov 2017 12:57:14 +0200 Subject: [PATCH 1/2] enable test for RN --- tests/js/object-id-tests.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/js/object-id-tests.js b/tests/js/object-id-tests.js index 80063732..1c35ff99 100644 --- a/tests/js/object-id-tests.js +++ b/tests/js/object-id-tests.js @@ -44,9 +44,6 @@ module.exports = { }, testSynced: function() { - if (!global.enableSyncTests || !isNodeProccess) - return; - return Realm.Sync.User.register('http://localhost:9080', uuid(), 'password').then(user => { const config = { sync: { user, url: 'realm://localhost:9080/~/myrealm' }, schema: [{ name: 'IntegerPrimaryKey', properties: { int: 'int?' }, primaryKey: 'int' }, From 3fd06badf68f75929439d9fbcf0bb6864512b77c Mon Sep 17 00:00:00 2001 From: blagoev Date: Mon, 20 Nov 2017 11:39:11 +0200 Subject: [PATCH 2/2] don't run a sync test when sync tested are not enabled --- tests/js/object-id-tests.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/js/object-id-tests.js b/tests/js/object-id-tests.js index 1c35ff99..1402f8d9 100644 --- a/tests/js/object-id-tests.js +++ b/tests/js/object-id-tests.js @@ -44,6 +44,10 @@ module.exports = { }, testSynced: function() { + if (!global.enableSyncTests) { + return Promise.resolve(); + } + return Realm.Sync.User.register('http://localhost:9080', uuid(), 'password').then(user => { const config = { sync: { user, url: 'realm://localhost:9080/~/myrealm' }, schema: [{ name: 'IntegerPrimaryKey', properties: { int: 'int?' }, primaryKey: 'int' },