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:
parent
1c2de1e483
commit
5368c87dc1
1 changed files with 2 additions and 0 deletions
|
@ -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",
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue