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=''
4141ENABLE_NOTICES = ' '
4242CAREER_LINK_URL = ' '
4343ENABLE_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'
4747ENABLE_NOTICES = ' '
4848CAREER_LINK_URL = ' '
4949ENABLE_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'
4646ENABLE_NOTICES = ' '
4747CAREER_LINK_URL = ' '
4848ENABLE_EDX_PERSONAL_DASHBOARD = true
49+ ENABLE_PROGRAMS = false
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const configuration = {
1919 LOGO_URL : process . env . LOGO_URL ,
2020 ENABLE_EDX_PERSONAL_DASHBOARD : process . env . ENABLE_EDX_PERSONAL_DASHBOARD === 'true' ,
2121 SEARCH_CATALOG_URL : process . env . SEARCH_CATALOG_URL || null ,
22- ENABLE_PROGRAMS : ! ! process . env . ENABLE_PROGRAMS ,
22+ ENABLE_PROGRAMS : process . env . ENABLE_PROGRAMS === 'true' ,
2323} ;
2424
2525const features = { } ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ describe('LearnerDashboardHeader', () => {
3939 const wrapper = shallow ( < LearnerDashboardHeader /> ) ;
4040 expect ( wrapper . instance . findByType ( Header ) [ 0 ] . props . secondaryMenuItems . length ) . toBe ( 1 ) ;
4141 } ) ;
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 ' , ( ) => {
4343 mergeConfig ( { ENABLE_PROGRAMS : true } ) ;
4444 const wrapper = shallow ( < LearnerDashboardHeader /> ) ;
4545 expect ( wrapper . instance . findByType ( Header ) [ 0 ] . props . mainMenuItems . length ) . toBe ( 3 ) ;
You can’t perform that action at this time.
0 commit comments