Skip to content

Commit a0e5f75

Browse files
dcoadeborahgu
authored andcommitted
fix: apply feedback
1 parent 2e101d5 commit a0e5f75

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ ACCOUNT_PROFILE_URL=''
4141
ENABLE_NOTICES=''
4242
CAREER_LINK_URL=''
4343
ENABLE_EDX_PERSONAL_DASHBOARD=false
44+
ENABLE_PROGRAMS=false

.env.development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ ACCOUNT_PROFILE_URL='http://localhost:1995'
4747
ENABLE_NOTICES=''
4848
CAREER_LINK_URL=''
4949
ENABLE_EDX_PERSONAL_DASHBOARD=false
50+
ENABLE_PROGRAMS=false

.env.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@ ACCOUNT_PROFILE_URL='http://account-profile-url.test'
4646
ENABLE_NOTICES=''
4747
CAREER_LINK_URL=''
4848
ENABLE_EDX_PERSONAL_DASHBOARD=true
49+
ENABLE_PROGRAMS=false

src/config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

2525
const features = {};

src/containers/LearnerDashboardHeader/index.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)