mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-12 15:24:18 +00:00
Merge pull request #660 from realm/rt/update-docs
Fix docs and test according to new api
This commit is contained in:
commit
b023f492b6
@ -107,11 +107,10 @@ class User {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an admin user for the given authentication server with an existing token
|
* Create an admin user for the given authentication server with an existing token
|
||||||
* @param {string} server - authentication server
|
|
||||||
* @param {string} adminToken - existing admin token
|
* @param {string} adminToken - existing admin token
|
||||||
* @return {User} - admin user populated with the given token and server
|
* @return {User} - admin user populated with the given token and server
|
||||||
*/
|
*/
|
||||||
adminUser(server, adminToken) {}
|
adminUser(adminToken) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A dictionary containing users that are currently logged in.
|
* A dictionary containing users that are currently logged in.
|
||||||
|
@ -21,8 +21,7 @@ describe('Sync Integration', () => {
|
|||||||
this.rl.on("line", (line) => {
|
this.rl.on("line", (line) => {
|
||||||
var match;
|
var match;
|
||||||
if ((match = line.match(/Connection\[1\]: Session\[1\]: Received: BIND\(server_path='\/(.+)',/))) {
|
if ((match = line.match(/Connection\[1\]: Session\[1\]: Received: BIND\(server_path='\/(.+)',/))) {
|
||||||
var adminUser = Realm.Sync.User.adminUser('http://127.0.0.1:9080/',
|
var adminUser = Realm.Sync.User.adminUser(fs.readFileSync("sync-bundle/admin_token.base64", "utf-8"));
|
||||||
fs.readFileSync("sync-bundle/admin_token.base64", "utf-8"));
|
|
||||||
this.adminRealmPath = match[1];
|
this.adminRealmPath = match[1];
|
||||||
this.adminRealm = new Realm({
|
this.adminRealm = new Realm({
|
||||||
path: "__admin.realm",
|
path: "__admin.realm",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user