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', diff --git a/netlify.toml b/netlify.toml index 5455b8e..0be5c3b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,9 @@ +[[redirects]] + from = "https://apprentices.seesparkbox.com/*" + to = "https://apprentices.sparkbox.com/:splat" + status = 301 + force = true + [[redirects]] from = "/apply-dev.html" to = "/"