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
|
@ -193,6 +193,7 @@ describe('loading:', function () {
|
||||||
expect(req.data.password).toEqual('pass');
|
expect(req.data.password).toEqual('pass');
|
||||||
}).respond(200, {
|
}).respond(200, {
|
||||||
user_id: '@user:id',
|
user_id: '@user:id',
|
||||||
|
device_id: 'DEVICE_ID',
|
||||||
access_token: 'access_token',
|
access_token: 'access_token',
|
||||||
});
|
});
|
||||||
login.onPasswordLogin("user", "pass")
|
login.onPasswordLogin("user", "pass")
|
||||||
|
@ -393,6 +394,7 @@ describe('loading:', function () {
|
||||||
expect(req.data.token).toEqual("secretToken");
|
expect(req.data.token).toEqual("secretToken");
|
||||||
}).respond(200, {
|
}).respond(200, {
|
||||||
user_id: "@user:localhost",
|
user_id: "@user:localhost",
|
||||||
|
device_id: 'DEVICE_ID',
|
||||||
access_token: "access_token",
|
access_token: "access_token",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue