From 8d5acd7da5c273a33ee63a0c72a6b41f490a2f91 Mon Sep 17 00:00:00 2001 From: Radu Tutueanu Date: Wed, 16 Nov 2016 13:36:41 +0100 Subject: [PATCH] Fix docs and test according to new api --- docs/sync.js | 3 +-- tests/spec/sync_integration_tests.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/sync.js b/docs/sync.js index 5ba015d2..0bb9d9be 100644 --- a/docs/sync.js +++ b/docs/sync.js @@ -107,11 +107,10 @@ class User { /** * Create an admin user for the given authentication server with an existing token - * @param {string} server - authentication server * @param {string} adminToken - existing admin token * @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. diff --git a/tests/spec/sync_integration_tests.js b/tests/spec/sync_integration_tests.js index 925ec1aa..6bfd2d35 100644 --- a/tests/spec/sync_integration_tests.js +++ b/tests/spec/sync_integration_tests.js @@ -21,8 +21,7 @@ describe('Sync Integration', () => { this.rl.on("line", (line) => { var match; if ((match = line.match(/Connection\[1\]: Session\[1\]: Received: BIND\(server_path='\/(.+)',/))) { - var adminUser = Realm.Sync.User.adminUser('http://127.0.0.1:9080/', - fs.readFileSync("sync-bundle/admin_token.base64", "utf-8")); + var adminUser = Realm.Sync.User.adminUser(fs.readFileSync("sync-bundle/admin_token.base64", "utf-8")); this.adminRealmPath = match[1]; this.adminRealm = new Realm({ path: "__admin.realm",