Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Sep 17, 2024
1 parent 0da6859 commit 991e14c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/assets/composables/forgotPassword.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AlertStyle, type AlertInterface } from '@userfrosting/sprinkle-core/typ
// Actions
async function forgotPassword(email: String) {
return axios
.post<{ message: string }>('/account/forgot-password', {'email': email})
.post<{ message: string }>('/account/forgot-password', { email: email })
.then((response) => {
const error: AlertInterface = {
description: response.data.message,
Expand Down
2 changes: 1 addition & 1 deletion app/assets/composables/resendVerification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AlertStyle, type AlertInterface } from '@userfrosting/sprinkle-core/typ
// Actions
async function resendVerification(email: String) {
return axios
.post<{ message: string }>('/account/resend-verification', {'email': email})
.post<{ message: string }>('/account/resend-verification', { email: email })
.then((response) => {
const error: AlertInterface = {
description: response.data.message,
Expand Down
4 changes: 2 additions & 2 deletions app/assets/tests/composables/forgotPassword.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('forgotPassword.ts', () => {
style: AlertStyle.Success,
closeBtn: true
})
expect(axios.post).toHaveBeenCalledWith('/account/forgot-password', {'email': email})
expect(axios.post).toHaveBeenCalledWith('/account/forgot-password', { email: email })
})

test('Should handle errors', async () => {
Expand All @@ -37,6 +37,6 @@ describe('forgotPassword.ts', () => {
style: AlertStyle.Danger,
closeBtn: true
})
expect(axios.post).toHaveBeenCalledWith('/account/forgot-password', {'email': email})
expect(axios.post).toHaveBeenCalledWith('/account/forgot-password', { email: email })
})
})
4 changes: 2 additions & 2 deletions app/assets/tests/composables/resendVerification.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('resendVerification.ts', () => {
style: AlertStyle.Success,
closeBtn: true
})
expect(axios.post).toHaveBeenCalledWith('/account/resend-verification', {'email': email})
expect(axios.post).toHaveBeenCalledWith('/account/resend-verification', { email: email })
})

test('Should handle errors', async () => {
Expand All @@ -37,6 +37,6 @@ describe('resendVerification.ts', () => {
style: AlertStyle.Danger,
closeBtn: true
})
expect(axios.post).toHaveBeenCalledWith('/account/resend-verification', {'email': email})
expect(axios.post).toHaveBeenCalledWith('/account/resend-verification', { email: email })
})
})

0 comments on commit 991e14c

Please sign in to comment.