Skip to content

Commit

Permalink
finish sept -> sep
Browse files Browse the repository at this point in the history
  • Loading branch information
JHWelch committed Sep 12, 2023
1 parent 8adfeb7 commit 7e9ca23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions __tests__/controllers/redirectController.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})
6 changes: 3 additions & 3 deletions src/controllers/redirectController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
static async sep21 (_req: Request, res: Response): Promise<void> {
res.redirect(RedirectController.sep21Url)
}
}
2 changes: 1 addition & 1 deletion src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
]
}

Expand Down

0 comments on commit 7e9ca23

Please sign in to comment.