From ee979fce3f68938083e3d46000ce3c19212e17ba Mon Sep 17 00:00:00 2001 From: Emma Mansell <73774046+7emansell@users.noreply.github.com> Date: Fri, 22 Nov 2024 12:25:28 -0500 Subject: [PATCH] Typo/import clean up --- pages/api/account/username/[id].ts | 2 +- src/components/MyAccount/NewSettings/UsernameForm.test.tsx | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pages/api/account/username/[id].ts b/pages/api/account/username/[id].ts index a2cc33d36..87d96a345 100644 --- a/pages/api/account/username/[id].ts +++ b/pages/api/account/username/[id].ts @@ -26,7 +26,7 @@ export default async function handler( const patronId = req.query.id as string const { username } = req.body /** We check that the patron cookie matches the patron id in the request, - * i.e.,the logged in user is updating their own useername. */ + * i.e.,the logged in user is updating their own username. */ if (patronId == cookiePatronId) { const response = await updateUsername(patronId, username) responseStatus = response.status diff --git a/src/components/MyAccount/NewSettings/UsernameForm.test.tsx b/src/components/MyAccount/NewSettings/UsernameForm.test.tsx index 9f420cd1e..d2950314a 100644 --- a/src/components/MyAccount/NewSettings/UsernameForm.test.tsx +++ b/src/components/MyAccount/NewSettings/UsernameForm.test.tsx @@ -12,7 +12,6 @@ describe("username form", () => { setUsernameStatus: jest.fn(), setUsernameStatusMessage: jest.fn(), } - const accountFetchSpy = jest.fn() beforeEach(() => { jest.clearAllMocks() @@ -26,7 +25,6 @@ describe("username form", () => { const component = ( { const noUsernameComponent = (