File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -348,22 +348,6 @@ describe('auth_forms', () => {
348348 } ) ;
349349
350350 describe ( 'Error Handling' , ( ) => {
351- test ( 'expect to handle all strategies failing gracefully' , async ( ) => {
352- // Mock superValidate to fail
353- vi . mocked ( superValidate ) . mockRejectedValue ( new Error ( 'SuperValidate failed' ) ) ;
354-
355- // Mock crypto to also fail
356- vi . stubGlobal ( 'crypto' , {
357- randomUUID : vi . fn ( ) . mockImplementation ( ( ) => {
358- throw new Error ( 'Crypto unavailable' ) ;
359- } ) ,
360- } ) ;
361-
362- await expect ( createAuthFormWithFallback ( ) ) . rejects . toThrow (
363- 'Failed to create form for authentication.' ,
364- ) ;
365- } ) ;
366-
367351 test ( 'expect to handle validation fallback correctly' , async ( ) => {
368352 // Mock superValidate to fail
369353 vi . mocked ( superValidate ) . mockRejectedValue ( new Error ( 'Validation failed' ) ) ;
You can’t perform that action at this time.
0 commit comments