File tree Expand file tree Collapse file tree 5 files changed +5
-2
lines changed Expand file tree Collapse file tree 5 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -41,3 +41,4 @@ ACCOUNT_PROFILE_URL=''
41
41
ENABLE_NOTICES = ' '
42
42
CAREER_LINK_URL = ' '
43
43
ENABLE_EDX_PERSONAL_DASHBOARD = false
44
+ ENABLE_PROGRAMS = false
Original file line number Diff line number Diff line change @@ -47,3 +47,4 @@ ACCOUNT_PROFILE_URL='http://localhost:1995'
47
47
ENABLE_NOTICES = ' '
48
48
CAREER_LINK_URL = ' '
49
49
ENABLE_EDX_PERSONAL_DASHBOARD = false
50
+ ENABLE_PROGRAMS = false
Original file line number Diff line number Diff line change @@ -46,3 +46,4 @@ ACCOUNT_PROFILE_URL='http://account-profile-url.test'
46
46
ENABLE_NOTICES = ' '
47
47
CAREER_LINK_URL = ' '
48
48
ENABLE_EDX_PERSONAL_DASHBOARD = true
49
+ ENABLE_PROGRAMS = false
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const configuration = {
19
19
LOGO_URL : process . env . LOGO_URL ,
20
20
ENABLE_EDX_PERSONAL_DASHBOARD : process . env . ENABLE_EDX_PERSONAL_DASHBOARD === 'true' ,
21
21
SEARCH_CATALOG_URL : process . env . SEARCH_CATALOG_URL || null ,
22
- ENABLE_PROGRAMS : ! ! process . env . ENABLE_PROGRAMS ,
22
+ ENABLE_PROGRAMS : process . env . ENABLE_PROGRAMS === 'true' ,
23
23
} ;
24
24
25
25
const features = { } ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ describe('LearnerDashboardHeader', () => {
39
39
const wrapper = shallow ( < LearnerDashboardHeader /> ) ;
40
40
expect ( wrapper . instance . findByType ( Header ) [ 0 ] . props . secondaryMenuItems . length ) . toBe ( 1 ) ;
41
41
} ) ;
42
- test ( 'should display Programs link if the service is configured in the backend ' , ( ) => {
42
+ test ( 'should display Programs link if it is enabled by configuration ' , ( ) => {
43
43
mergeConfig ( { ENABLE_PROGRAMS : true } ) ;
44
44
const wrapper = shallow ( < LearnerDashboardHeader /> ) ;
45
45
expect ( wrapper . instance . findByType ( Header ) [ 0 ] . props . mainMenuItems . length ) . toBe ( 3 ) ;
You can’t perform that action at this time.
0 commit comments