diff --git a/workbench/tests/renderer/changelog.test.js b/workbench/tests/renderer/changelog.test.js index 8b1bcd3eb..ef700e0b7 100644 --- a/workbench/tests/renderer/changelog.test.js +++ b/workbench/tests/renderer/changelog.test.js @@ -5,6 +5,17 @@ import userEvent from '@testing-library/user-event'; import App from '../../src/renderer/app'; import pkg from '../../package.json'; +import { getInvestModelNames } from '../../src/renderer/server_requests'; + +jest.mock('../../src/renderer/server_requests'); + +const MOCK_MODEL_TITLE = 'Carbon'; +const MOCK_MODEL_RUN_NAME = 'carbon'; +const MOCK_INVEST_LIST = { + [MOCK_MODEL_TITLE]: { + model_name: MOCK_MODEL_RUN_NAME, + }, +}; describe('Changelog', () => { const currentVersion = pkg.version; @@ -27,6 +38,7 @@ describe('Changelog', () => { ` }); + getInvestModelNames.mockResolvedValue(MOCK_INVEST_LIST); }); test('Changelog modal opens immediately on launch of a new version', async () => {