@@ -36,7 +36,7 @@ describe('Test Registration', async () => {
36
36
const givenUsername = uuidv4 ( ) . replaceAll ( '-' , '' )
37
37
const givenName = uuidv4 ( ) . replaceAll ( '-' , '' )
38
38
const givenName2 = uuidv4 ( ) . replaceAll ( '-' , '' )
39
-
39
+
40
40
await $fetch ( '/api/auth/register' ,
41
41
{
42
42
method : 'POST' ,
@@ -47,8 +47,7 @@ describe('Test Registration', async () => {
47
47
48
48
password : '12345678'
49
49
} ,
50
- } ) . catch ( error => {
51
- } )
50
+ } ) . catch ( error => { } )
52
51
53
52
await $fetch ( '/api/auth/register' ,
54
53
{
@@ -69,13 +68,12 @@ describe('Test Registration', async () => {
69
68
} )
70
69
} )
71
70
72
-
73
71
test ( 'already used name returns error' , async ( ) => {
74
72
const givenEmail = uuidv4 ( ) . replaceAll ( '-' , '' ) + '@fullstackjack.dev'
75
73
const givenEmail2 = uuidv4 ( ) . replaceAll ( '-' , '' ) + '@fullstackjack.dev'
76
74
const givenName = uuidv4 ( ) . replaceAll ( '-' , '' )
77
75
const givenName2 = uuidv4 ( ) . replaceAll ( '-' , '' )
78
-
76
+
79
77
await $fetch ( '/api/auth/register' ,
80
78
{
81
79
method : 'POST' ,
@@ -108,7 +106,6 @@ describe('Test Registration', async () => {
108
106
} )
109
107
} )
110
108
111
-
112
109
test ( 'vaild data registers new user' , async ( ) => {
113
110
const givenEmail = uuidv4 ( ) . replaceAll ( '-' , '' ) + '@fullstackjack.dev'
114
111
const givenUsername = uuidv4 ( ) . replaceAll ( '-' , '' )
0 commit comments