Fix tests to run crypto code

Return a device_id from /login requests, so that all the crypto logic works.
This commit is contained in:
Richard van der Hoff 2017-02-02 23:41:49 +00:00
parent 1c2de1e483
commit 5368c87dc1

View file

@ -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",
});