Fixing a typo in _getExistingUser (#1634)
This commit is contained in:
parent
7569816526
commit
ac82bd285d
14
CHANGELOG.md
14
CHANGELOG.md
|
@ -1,3 +1,17 @@
|
||||||
|
X.Y.Z Release notes
|
||||||
|
=============================================================
|
||||||
|
### Breaking changes
|
||||||
|
* None.
|
||||||
|
|
||||||
|
### Enhancements
|
||||||
|
* None.
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
* [Object Server] Fixed a typing error leading to `_getExistingUser` wasn't defined in the Chrome debugging support library (#1625).
|
||||||
|
|
||||||
|
### Internal
|
||||||
|
* None.
|
||||||
|
|
||||||
2.2.4 Release notes (2018-1-18)
|
2.2.4 Release notes (2018-1-18)
|
||||||
=============================================================
|
=============================================================
|
||||||
### Breaking changes
|
### Breaking changes
|
||||||
|
|
|
@ -36,7 +36,7 @@ export default class User {
|
||||||
return getAllUsersRPC();
|
return getAllUsersRPC();
|
||||||
}
|
}
|
||||||
|
|
||||||
static _getExistinguser() {
|
static _getExistingUser() {
|
||||||
return _getExistingUserRPC();
|
return _getExistingUserRPC();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -253,6 +253,18 @@ module.exports = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
testGetExistingUser() {
|
||||||
|
let userid = uuid();
|
||||||
|
return Realm.Sync.User.register('http://localhost:9080', userid, 'password').then((user) => {
|
||||||
|
let identity = user.identity;
|
||||||
|
let user1 = Realm.Sync.User._getExistingUser('http://localhost:9080', identity);
|
||||||
|
assertIsSameUser(user1, user);
|
||||||
|
user.logout();
|
||||||
|
let user2 = Realm.Sync.User._getExistingUser('http://localhost:9080', identity);
|
||||||
|
TestCase.assertUndefined(user2);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
testManagementRealm() {
|
testManagementRealm() {
|
||||||
return Realm.Sync.User.register('http://localhost:9080', uuid(), 'password').then((user) => {
|
return Realm.Sync.User.register('http://localhost:9080', uuid(), 'password').then((user) => {
|
||||||
let realm = user.openManagementRealm();
|
let realm = user.openManagementRealm();
|
||||||
|
|
Loading…
Reference in New Issue