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 = (