Fix tests to run crypto code
Return a device_id from /login requests, so that all the crypto logic works.pull/3125/head
parent
1c2de1e483
commit
5368c87dc1
|
@ -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 New Issue