File tree 11 files changed +12
-12
lines changed
11 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const mockActions = {
20
20
jest . setMock ( require . resolve ( 'actions/auth' ) , mockActions ) ;
21
21
jest . setMock ( require . resolve ( 'actions/profile' ) , mockActions ) ;
22
22
23
- jest . setMock ( 'tc-accounts ' , {
23
+ jest . setMock ( '@topcoder-platform/ tc-auth-lib ' , {
24
24
decodeToken : ( ) => 'User object' ,
25
25
isTokenExpired : ( ) => false ,
26
26
} ) ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const mockSmpActions = {
44
44
} ;
45
45
_ . merge ( actions , mockSmpActions ) ;
46
46
47
- jest . setMock ( 'tc-accounts ' , {
47
+ jest . setMock ( '@topcoder-platform/ tc-auth-lib ' , {
48
48
decodeToken : ( ) => 'User object' ,
49
49
isTokenExpired : ( ) => false ,
50
50
} ) ;
Original file line number Diff line number Diff line change 1
1
/* global jest */
2
2
require ( 'topcoder-react-utils/config/jest/setup' ) ;
3
3
4
- jest . setMock ( 'tc-accounts ' , {
4
+ jest . setMock ( '@topcoder-platform/ tc-auth-lib ' , {
5
5
decodeToken : token => ( token ? {
6
6
handle : 'username12345' ,
7
7
userId : '12345' ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ module.exports = {
22
22
'redux' ,
23
23
'redux-actions' ,
24
24
'isomorphic-fetch' ,
25
- 'tc-accounts ' ,
25
+ '@topcoder-platform/ tc-auth-lib ' ,
26
26
'to-capital-case' ,
27
27
'topcoder-react-utils' ,
28
28
'tc-core-library-js' ,
Original file line number Diff line number Diff line change 47
47
"react-redux" : " ^6.0.1" ,
48
48
"redux" : " ^3.7.2" ,
49
49
"redux-actions" : " ^2.4.0" ,
50
- "tc-accounts" : " https://github.com/appirio-tech/accounts-app.git#dev" ,
51
50
"tc-core-library-js" : " appirio-tech/tc-core-library-js.git#v2.6" ,
52
51
"to-capital-case" : " ^1.0.0" ,
53
52
"topcoder-react-utils" : " 0.7.5"
104
103
"webpack-dev-middleware" : " ^3.1.3" ,
105
104
"webpack-hot-middleware" : " ^2.22.2" ,
106
105
"webpack-merge" : " ^4.1.3" ,
107
- "webpack-stats-plugin" : " ^0.2.1"
106
+ "webpack-stats-plugin" : " ^0.2.1" ,
107
+ "@topcoder-platform/tc-auth-lib" : " ^1.0.0"
108
108
}
109
109
}
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
import { createActions } from 'redux-actions' ;
7
- import { decodeToken } from 'tc-accounts ' ;
7
+ import { decodeToken } from '@topcoder-platform/ tc-auth-lib ' ;
8
8
import { getApiV3 , getApiV5 } from '../services/api' ;
9
9
10
10
/**
Original file line number Diff line number Diff line change 7
7
import _ from 'lodash' ;
8
8
import { config } from 'topcoder-react-utils' ;
9
9
import { createActions } from 'redux-actions' ;
10
- import { decodeToken } from 'tc-accounts ' ;
10
+ import { decodeToken } from '@topcoder-platform/ tc-auth-lib ' ;
11
11
import { getService as getChallengesService } from '../services/challenges' ;
12
12
import { getService as getSubmissionService } from '../services/submissions' ;
13
13
import { getApi } from '../services/api' ;
Original file line number Diff line number Diff line change 13
13
*/
14
14
15
15
import _ from 'lodash' ;
16
- import { decodeToken } from 'tc-accounts ' ;
16
+ import { decodeToken } from '@topcoder-platform/ tc-auth-lib ' ;
17
17
import { redux } from 'topcoder-react-utils' ;
18
18
import actions from '../actions/auth' ;
19
19
import profileActions from '../actions/profile' ;
Original file line number Diff line number Diff line change 6
6
7
7
import _ from 'lodash' ;
8
8
import { handleActions } from 'redux-actions' ;
9
- import { decodeToken } from 'tc-accounts ' ;
9
+ import { decodeToken } from '@topcoder-platform/ tc-auth-lib ' ;
10
10
import actions from '../actions/direct' ;
11
11
import logger from '../utils/logger' ;
12
12
import { fireErrorMessage } from '../utils/errors' ;
Original file line number Diff line number Diff line change 7
7
import _ from 'lodash' ;
8
8
import moment from 'moment' ;
9
9
import qs from 'qs' ;
10
- import { decodeToken } from 'tc-accounts ' ;
10
+ import { decodeToken } from '@topcoder-platform/ tc-auth-lib ' ;
11
11
import logger from '../utils/logger' ;
12
12
import { setErrorIcon , ERROR_ICON_TYPES } from '../utils/errors' ;
13
13
import { COMPETITION_TRACKS , getApiResponsePayload } from '../utils/tc' ;
Original file line number Diff line number Diff line change 7
7
/* global XMLHttpRequest */
8
8
import _ from 'lodash' ;
9
9
import qs from 'qs' ;
10
- import { decodeToken } from 'tc-accounts ' ;
10
+ import { decodeToken } from '@topcoder-platform/ tc-auth-lib ' ;
11
11
import logger from '../utils/logger' ;
12
12
import { getApiResponsePayload } from '../utils/tc' ;
13
13
import { getApi } from './api' ;
You can’t perform that action at this time.
0 commit comments