Ivan - Frontend - Fix frontend unit testing [skip ci]
This commit is contained in:
parent
06ad75b688
commit
f91b957d0f
|
@ -18,7 +18,8 @@ describe('Session Actions,', function () {
|
|||
then: function (resolve) {
|
||||
resolve({
|
||||
data: {
|
||||
userId: 14
|
||||
userId: 14,
|
||||
token: 'SOME_TOKEN'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -35,7 +36,8 @@ describe('Session Actions,', function () {
|
|||
expect(APICallMock.call).to.have.been.calledWith({
|
||||
path: '/user/get',
|
||||
data: {
|
||||
userId: 14
|
||||
csrf_userid: 14,
|
||||
csrf_token: 'SOME_TOKEN'
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -6,7 +6,7 @@ module.exports = [
|
|||
return {
|
||||
status: 'success',
|
||||
data: {
|
||||
'language': 'us',
|
||||
'language': 'en',
|
||||
'reCaptchaKey': '6LfM5CYTAAAAAGLz6ctpf-hchX2_l0Ge-Bn-n8wS',
|
||||
'departments': [
|
||||
'Sales Support',
|
||||
|
|
|
@ -6,7 +6,7 @@ class SessionStore {
|
|||
this.storage = LocalStorage;
|
||||
|
||||
if (!this.getItem('language')) {
|
||||
this.setItem('language', 'us');
|
||||
this.setItem('language', 'en');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue