Skip to content

Commit a0a0960

Browse files
committed
fix(test) formatting
1 parent 67f49cb commit a0a0960

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/feature/register.test.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('Test Registration', async () => {
3636
const givenUsername = uuidv4().replaceAll('-', '')
3737
const givenName = uuidv4().replaceAll('-', '')
3838
const givenName2 = uuidv4().replaceAll('-', '')
39-
39+
4040
await $fetch('/api/auth/register',
4141
{
4242
method: 'POST',
@@ -47,8 +47,7 @@ describe('Test Registration', async () => {
4747
4848
password: '12345678'
4949
},
50-
}).catch(error => {
51-
})
50+
}).catch(error => {})
5251

5352
await $fetch('/api/auth/register',
5453
{
@@ -69,13 +68,12 @@ describe('Test Registration', async () => {
6968
})
7069
})
7170

72-
7371
test('already used name returns error', async () => {
7472
const givenEmail = uuidv4().replaceAll('-', '') + '@fullstackjack.dev'
7573
const givenEmail2 = uuidv4().replaceAll('-', '') + '@fullstackjack.dev'
7674
const givenName = uuidv4().replaceAll('-', '')
7775
const givenName2 = uuidv4().replaceAll('-', '')
78-
76+
7977
await $fetch('/api/auth/register',
8078
{
8179
method: 'POST',
@@ -108,7 +106,6 @@ describe('Test Registration', async () => {
108106
})
109107
})
110108

111-
112109
test('vaild data registers new user', async () => {
113110
const givenEmail = uuidv4().replaceAll('-', '') + '@fullstackjack.dev'
114111
const givenUsername = uuidv4().replaceAll('-', '')

0 commit comments

Comments
 (0)