diff --git a/__tests__/snapshot.js b/__tests__/snapshot.js index 1b6bd13..1688621 100644 --- a/__tests__/snapshot.js +++ b/__tests__/snapshot.js @@ -3,6 +3,9 @@ import renderer from 'react-test-renderer'; import Index from '../pages/index'; it('renders homepage unchanged', () => { + const mockFooterDate = new Date(2023, 0, 1); + jest.spyOn(global, 'Date').mockImplementation(() => mockFooterDate); + const apprenticeData = { currentApprenticeGroup: { version: '0.0',