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) {
|
then: function (resolve) {
|
||||||
resolve({
|
resolve({
|
||||||
data: {
|
data: {
|
||||||
userId: 14
|
userId: 14,
|
||||||
|
token: 'SOME_TOKEN'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -35,7 +36,8 @@ describe('Session Actions,', function () {
|
||||||
expect(APICallMock.call).to.have.been.calledWith({
|
expect(APICallMock.call).to.have.been.calledWith({
|
||||||
path: '/user/get',
|
path: '/user/get',
|
||||||
data: {
|
data: {
|
||||||
userId: 14
|
csrf_userid: 14,
|
||||||
|
csrf_token: 'SOME_TOKEN'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -6,7 +6,7 @@ module.exports = [
|
||||||
return {
|
return {
|
||||||
status: 'success',
|
status: 'success',
|
||||||
data: {
|
data: {
|
||||||
'language': 'us',
|
'language': 'en',
|
||||||
'reCaptchaKey': '6LfM5CYTAAAAAGLz6ctpf-hchX2_l0Ge-Bn-n8wS',
|
'reCaptchaKey': '6LfM5CYTAAAAAGLz6ctpf-hchX2_l0Ge-Bn-n8wS',
|
||||||
'departments': [
|
'departments': [
|
||||||
'Sales Support',
|
'Sales Support',
|
||||||
|
|
|
@ -6,7 +6,7 @@ class SessionStore {
|
||||||
this.storage = LocalStorage;
|
this.storage = LocalStorage;
|
||||||
|
|
||||||
if (!this.getItem('language')) {
|
if (!this.getItem('language')) {
|
||||||
this.setItem('language', 'us');
|
this.setItem('language', 'en');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue