Skip to content

Commit 0934601

Browse files
authored
Merge pull request #11 from Pearson-Advance/vue/PADV-1973.fix
fix: update exam dashboard URL in header component and tests
2 parents 92ebbd0 + 56ee2be commit 0934601

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Header.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const Header = ({ intl, appID }) => {
4747
},
4848
mfeConfigs.ENABLE_EXAM_DASHBOARD && {
4949
type: 'item',
50-
href: `${mfeConfigs.EXAM_DASHBOARD_MFE_BASE_URL}/dashboard`,
50+
href: `${mfeConfigs.WEBNG_EXAM_MFE_BASE_URL}/dashboard`,
5151
content: intl.formatMessage(messages['header.links.exams']),
5252
},
5353
].filter(Boolean);

src/Header.test.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jest.mock('./hooks', () => ({
1818
default: jest.fn(() => []),
1919
useGetMFEConfig: jest.fn(() => ({
2020
ENABLE_EXAM_DASHBOARD: false,
21-
EXAM_DASHBOARD_MFE_BASE_URL: 'http://localhost:1994',
21+
WEBNG_EXAM_MFE_BASE_URL: 'http://localhost:1994',
2222
})),
2323
}));
2424

@@ -125,7 +125,7 @@ describe('<Header />', () => {
125125
it('renders exam dashboard link when ENABLE_EXAM_DASHBOARD is true (desktop)', () => {
126126
useGetMFEConfig.mockReturnValue({
127127
ENABLE_EXAM_DASHBOARD: true,
128-
EXAM_DASHBOARD_MFE_BASE_URL: 'http://localhost:1994',
128+
WEBNG_EXAM_MFE_BASE_URL: 'http://localhost:1994',
129129
});
130130

131131
const contextValue = {
@@ -156,7 +156,7 @@ describe('<Header />', () => {
156156
it('renders exam dashboard link when ENABLE_EXAM_DASHBOARD is true (mobile)', () => {
157157
useGetMFEConfig.mockReturnValue({
158158
ENABLE_EXAM_DASHBOARD: true,
159-
EXAM_DASHBOARD_MFE_BASE_URL: 'http://localhost:1994',
159+
WEBNG_EXAM_MFE_BASE_URL: 'http://localhost:1994',
160160
});
161161

162162
const contextValue = {

0 commit comments

Comments
 (0)