fix: update setup test to mock locationId

This commit is contained in:
Leangseu Kim
2022-02-02 13:08:16 -05:00
committed by leangseu-edx
parent 81026ae013
commit c6ed6938af
3 changed files with 4 additions and 6 deletions

View File

@@ -23,9 +23,6 @@ jest.mock('data/redux', () => ({
},
}));
jest.mock('data/constants/app', () => ({
locationId: 'fake-location-id',
}));
jest.mock('data/services/lms/urls', () => ({
openResponse: (courseId) => `openResponseUrl(${courseId})`,
ora: (courseId, locationId) => `oraUrl(${courseId}, ${locationId})`,

View File

@@ -6,9 +6,6 @@ import thunkActions from './app';
jest.mock('./requests', () => ({
initializeApp: (args) => ({ initializeApp: args }),
}));
jest.mock('data/constants/app', () => ({
locationId: 'fake-location-id',
}));
describe('app thunkActions', () => {
let dispatch;

View File

@@ -95,3 +95,7 @@ jest.mock('@edx/paragon/icons', () => ({
InfoOutline: jest.fn().mockName('icons.InfoOutline'),
Launch: jest.fn().mockName('icons.Launch'),
}));
jest.mock('data/constants/app', () => ({
locationId: 'fake-location-id',
}));