diff --git a/__tests__/controllers/redirectController.spec.ts b/__tests__/controllers/redirectController.spec.ts index 36ba2b94..fa8c6396 100644 --- a/__tests__/controllers/redirectController.spec.ts +++ b/__tests__/controllers/redirectController.spec.ts @@ -12,9 +12,9 @@ describe('sep21', () => { it('should return a redirect to notion', async () => { const req = getMockReq() - await RedirectController.sept21(req, res) + await RedirectController.sep21(req, res) expect(res.redirect) - .toHaveBeenCalledWith(RedirectController.sept21Url) + .toHaveBeenCalledWith(RedirectController.sep21Url) }) }) diff --git a/src/controllers/redirectController.ts b/src/controllers/redirectController.ts index 00458cf5..1c9716cf 100644 --- a/src/controllers/redirectController.ts +++ b/src/controllers/redirectController.ts @@ -2,11 +2,11 @@ import { type Request, type Response } from 'express' export default class RedirectController { static PATHS = { - sept21: '/sep21', + sep21: '/sep21', } - static sep21Url = 'https://ginger-flood-c72.notion.site/The-2023-Celebration-of-Rachel-s-32nd-Birthday-Also-Known-As-Halloween-in-September-a17c5537f8594c30bb301a48c988f7ec' + static sep21Url = 'https://ginger-flood-c72.notion.site/The-2023-Celebration-of-Rachel-s-32nd-Birthday-Also-Known-As-Halloween-in-sepember-a17c5537f8594c30bb301a48c988f7ec' - static async sept21 (_req: Request, res: Response): Promise { + static async sep21 (_req: Request, res: Response): Promise { res.redirect(RedirectController.sep21Url) } } diff --git a/src/routes.ts b/src/routes.ts index c0de1c1a..497edffc 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -55,7 +55,7 @@ function routes ( HttpMethod.POST, ), new Route('/api/cache', cacheController.cache.bind(cacheController)), - new Route(RedirectController.PATHS.sept21, RedirectController.sept21), + new Route(RedirectController.PATHS.sep21, RedirectController.sep21), ] }