File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { EnvironmentTypes , SiteConfig } from '@openedx/frontend-base' ;
2
2
3
+ import { appId } from './src/constants' ;
4
+
3
5
const siteConfig : SiteConfig = {
4
6
siteId : 'learner-dashboard-test-site' ,
5
7
siteName : 'Learner Dashboard Test Site' ,
@@ -11,7 +13,7 @@ const siteConfig: SiteConfig = {
11
13
environment : EnvironmentTypes . TEST ,
12
14
basename : '/learner-dashboard' ,
13
15
apps : [ {
14
- appId : 'org.openedx.frontend.app.learnerDashboard' ,
16
+ appId,
15
17
config : {
16
18
ECOMMERCE_BASE_URL : 'http://localhost:18130' ,
17
19
FAVICON_URL : 'https://edx-cdn.org/v3/default/favicon.ico' ,
Original file line number Diff line number Diff line change 1
1
import { getAppConfig , getSiteConfig } from '@openedx/frontend-base' ;
2
+ import { appId } from '../../../constants' ;
2
3
import * as urls from './urls' ;
3
4
4
5
describe ( 'urls' , ( ) => {
@@ -25,7 +26,7 @@ describe('urls', () => {
25
26
it ( 'returns the url if it is relative' , ( ) => {
26
27
const url = '/edx.org' ;
27
28
expect ( urls . learningMfeUrl ( url ) ) . toEqual (
28
- `${ getAppConfig ( 'org.openedx.frontend.app.learnerDashboard' ) . LEARNING_BASE_URL } ${ url } ` ,
29
+ `${ getAppConfig ( appId ) . LEARNING_BASE_URL } ${ url } ` ,
29
30
) ;
30
31
} ) ;
31
32
it ( 'return null if url is null' , ( ) => {
You can’t perform that action at this time.
0 commit comments