Skip to content

Commit

Permalink
Typo/import clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
7emansell committed Nov 22, 2024
1 parent f1a87f8 commit ee979fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion pages/api/account/username/[id].ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions src/components/MyAccount/NewSettings/UsernameForm.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ describe("username form", () => {
setUsernameStatus: jest.fn(),
setUsernameStatusMessage: jest.fn(),
}
const accountFetchSpy = jest.fn()

beforeEach(() => {
jest.clearAllMocks()
Expand All @@ -26,7 +25,6 @@ describe("username form", () => {

const component = (
<PatronDataProvider
testSpy={accountFetchSpy}
value={{
patron: processedPatron,
pickupLocations: filteredPickupLocations,
Expand All @@ -41,7 +39,6 @@ describe("username form", () => {

const noUsernameComponent = (
<PatronDataProvider
testSpy={accountFetchSpy}
value={{
patron: emptyPatron,
pickupLocations: filteredPickupLocations,
Expand Down

0 comments on commit ee979fc

Please sign in to comment.