Fix tests

This commit is contained in:
blagoev 2017-09-18 11:19:36 +03:00
parent 3ee26d5719
commit b7fef1b6e9
1 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ module.exports = {
assertIsUser(user);
Realm.Sync.User.register('http://localhost:9080', username, 'password', (error, user) => {
assertIsAuthError(error, 611, 'https://realm.io/docs/object-server/problems/invalid-credentials');
assertIsAuthError(error, 611, "The provided credentials are invalid or a user already exists.");
TestCase.assertUndefined(user);
});
});
@ -202,7 +202,7 @@ module.exports = {
testLoginNonExistingUser() {
return callbackTest((callback) => Realm.Sync.User.login('http://localhost:9080', 'does_not', 'exist', callback), (error, user) => {
assertIsAuthError(error, 611, 'https://realm.io/docs/object-server/problems/invalid-credentials');
assertIsAuthError(error, 611, "The provided credentials are invalid or a user already exists.");
TestCase.assertUndefined(user);
});
},