From 5368c87dc142b42f60fb9e6b7cad3c876a11e374 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 2 Feb 2017 23:41:49 +0000 Subject: [PATCH] Fix tests to run crypto code Return a device_id from /login requests, so that all the crypto logic works. --- test/app-tests/loading.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/app-tests/loading.js b/test/app-tests/loading.js index 4504d00b..d2cb78d0 100644 --- a/test/app-tests/loading.js +++ b/test/app-tests/loading.js @@ -193,6 +193,7 @@ describe('loading:', function () { expect(req.data.password).toEqual('pass'); }).respond(200, { user_id: '@user:id', + device_id: 'DEVICE_ID', access_token: 'access_token', }); login.onPasswordLogin("user", "pass") @@ -393,6 +394,7 @@ describe('loading:', function () { expect(req.data.token).toEqual("secretToken"); }).respond(200, { user_id: "@user:localhost", + device_id: 'DEVICE_ID', access_token: "access_token", });