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

View File

@ -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',

View File

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