Ivan - Frontend - Fix frontend unit testing [skip ci]

This commit is contained in:
ivan 2016-09-09 02:31:49 -03:00
parent 06ad75b688
commit f91b957d0f
3 changed files with 6 additions and 4 deletions

View File

@ -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'
}
});
});

View File

@ -6,7 +6,7 @@ module.exports = [
return {
status: 'success',
data: {
'language': 'us',
'language': 'en',
'reCaptchaKey': '6LfM5CYTAAAAAGLz6ctpf-hchX2_l0Ge-Bn-n8wS',
'departments': [
'Sales Support',

View File

@ -6,7 +6,7 @@ class SessionStore {
this.storage = LocalStorage;
if (!this.getItem('language')) {
this.setItem('language', 'us');
this.setItem('language', 'en');
}
}