fix: update setup test to mock locationId
This commit is contained in:
committed by
leangseu-edx
parent
81026ae013
commit
c6ed6938af
@@ -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})`,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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',
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user