mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-20 19:40:58 +00:00
don't run a sync test when sync tested are not enabled
This commit is contained in:
parent
4f1d5e36a1
commit
3fd06badf6
@ -44,6 +44,10 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
testSynced: function() {
|
testSynced: function() {
|
||||||
|
if (!global.enableSyncTests) {
|
||||||
|
return Promise.resolve();
|
||||||
|
}
|
||||||
|
|
||||||
return Realm.Sync.User.register('http://localhost:9080', uuid(), 'password').then(user => {
|
return Realm.Sync.User.register('http://localhost:9080', uuid(), 'password').then(user => {
|
||||||
const config = { sync: { user, url: 'realm://localhost:9080/~/myrealm' },
|
const config = { sync: { user, url: 'realm://localhost:9080/~/myrealm' },
|
||||||
schema: [{ name: 'IntegerPrimaryKey', properties: { int: 'int?' }, primaryKey: 'int' },
|
schema: [{ name: 'IntegerPrimaryKey', properties: { int: 'int?' }, primaryKey: 'int' },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user