Skip to content
Draft
Prev Previous commit
Next Next commit
fix: remove extra mock and regenerate package-lock
  • Loading branch information
filippovskii09 committed Dec 10, 2025
commit b350aa451833234ace4f2500b13d902afcf401ee
48 changes: 24 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions src/courseware/data/pact-tests/lmsPact.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,6 @@ describe('Courseware Service', () => {
mergeConfig({
LMS_BASE_URL: 'http://localhost:8081',
}, 'Custom app config for pact tests');

// Mock Intl.DateTimeFormat to return a consistent timezone across all environments
// This ensures that the browser_timezone query parameter matches the pact file
const OriginalDateTimeFormat = Intl.DateTimeFormat;
jest.spyOn(Intl, 'DateTimeFormat').mockImplementation((...args) => {
const dtf = new OriginalDateTimeFormat(...args);
const originalResolvedOptions = dtf.resolvedOptions.bind(dtf);
dtf.resolvedOptions = () => ({
...originalResolvedOptions(),
timeZone: 'Asia/Karachi',
});
return dtf;
});
});

describe('When a request to get a learning sequence outline is made', () => {
Expand Down