Merge pull request #1494 from realm/enable-objectid-test-rn

enable testSynced objectid test for RN
This commit is contained in:
blagoev 2017-11-20 11:50:09 +02:00 committed by GitHub
commit 8dd1bdbee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -44,9 +44,10 @@ module.exports = {
},
testSynced: function() {
if (!global.enableSyncTests || !isNodeProccess)
return;
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' },