fix: a couple of appId imports
This commit is contained in:
committed by
Adolfo R. Brandes
parent
2045854099
commit
268ccc864d
@@ -1,5 +1,7 @@
|
||||
import { EnvironmentTypes, SiteConfig } from '@openedx/frontend-base';
|
||||
|
||||
import { appId } from './src/constants';
|
||||
|
||||
const siteConfig: SiteConfig = {
|
||||
siteId: 'learner-dashboard-test-site',
|
||||
siteName: 'Learner Dashboard Test Site',
|
||||
@@ -11,7 +13,7 @@ const siteConfig: SiteConfig = {
|
||||
environment: EnvironmentTypes.TEST,
|
||||
basename: '/learner-dashboard',
|
||||
apps: [{
|
||||
appId: 'org.openedx.frontend.app.learnerDashboard',
|
||||
appId,
|
||||
config: {
|
||||
ECOMMERCE_BASE_URL: 'http://localhost:18130',
|
||||
FAVICON_URL: 'https://edx-cdn.org/v3/default/favicon.ico',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { getAppConfig, getSiteConfig } from '@openedx/frontend-base';
|
||||
import { appId } from '../../../constants';
|
||||
import * as urls from './urls';
|
||||
|
||||
describe('urls', () => {
|
||||
@@ -25,7 +26,7 @@ describe('urls', () => {
|
||||
it('returns the url if it is relative', () => {
|
||||
const url = '/edx.org';
|
||||
expect(urls.learningMfeUrl(url)).toEqual(
|
||||
`${getAppConfig('org.openedx.frontend.app.learnerDashboard').LEARNING_BASE_URL}${url}`,
|
||||
`${getAppConfig(appId).LEARNING_BASE_URL}${url}`,
|
||||
);
|
||||
});
|
||||
it('return null if url is null', () => {
|
||||
|
||||
Reference in New Issue
Block a user