@@ -19,7 +19,7 @@ test('creates a new API token', async function () {
1919 let response = await fetch ( '/api/v1/me/tokens' , { method : 'PUT' , body } ) ;
2020 expect ( response . status ) . toBe ( 200 ) ;
2121
22- let token = db . apiToken . findMany ( null ) [ 0 ] ;
22+ let token = db . apiToken . findMany ( ) [ 0 ] ;
2323 expect ( token ) . toBeTruthy ( ) ;
2424
2525 expect ( await response . json ( ) ) . toMatchInlineSnapshot ( `
@@ -53,7 +53,7 @@ test('creates a new API token with scopes', async function () {
5353 let response = await fetch ( '/api/v1/me/tokens' , { method : 'PUT' , body } ) ;
5454 expect ( response . status ) . toBe ( 200 ) ;
5555
56- let token = db . apiToken . findMany ( null ) [ 0 ] ;
56+ let token = db . apiToken . findMany ( ) [ 0 ] ;
5757 expect ( token ) . toBeTruthy ( ) ;
5858
5959 expect ( await response . json ( ) ) . toMatchInlineSnapshot ( `
@@ -91,7 +91,7 @@ test('creates a new API token with expiry date', async function () {
9191 let response = await fetch ( '/api/v1/me/tokens' , { method : 'PUT' , body } ) ;
9292 expect ( response . status ) . toBe ( 200 ) ;
9393
94- let token = db . apiToken . findMany ( null ) [ 0 ] ;
94+ let token = db . apiToken . findMany ( ) [ 0 ] ;
9595 expect ( token ) . toBeTruthy ( ) ;
9696
9797 expect ( await response . json ( ) ) . toMatchInlineSnapshot ( `
0 commit comments