don't run a sync test when sync tested are not enabled

This commit is contained in:
blagoev 2017-11-20 11:39:11 +02:00 committed by GitHub
parent 4f1d5e36a1
commit 3fd06badf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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' },