File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,22 @@ describe("[POST] /api/auth/register", () => {
7979 expect ( res . body . username ) . toBeTruthy ( ) ;
8080 expect ( res . body . password ) . toBeTruthy ( ) ;
8181 expect ( res . body . id ) . toBeTruthy ( ) ;
82+
83+ res = await request ( server )
84+ . post ( "/api/auth/register" )
85+ . send ( { username : "juan" , password : "pass" } ) ;
86+
87+ expect ( res . body . username ) . toBeTruthy ( ) ;
88+ expect ( res . body . password ) . toBeTruthy ( ) ;
89+ expect ( res . body . id ) . toBeTruthy ( ) ;
90+
91+ res = await request ( server )
92+ . post ( "/api/auth/register" )
93+ . send ( { username : "paco" , password : "pass" } ) ;
94+
95+ expect ( res . body . username ) . toBeTruthy ( ) ;
96+ expect ( res . body . password ) . toBeTruthy ( ) ;
97+ expect ( res . body . id ) . toBeTruthy ( ) ;
8298 } )
8399
84100 test ( '[5] responds with newly created user' , async ( ) => {
You can’t perform that action at this time.
0 commit comments