Skip to content

Commit e5fa034

Browse files
committed
♻️ Remove unused test (#2446)
1 parent 183645d commit e5fa034

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/test/lib/utils/auth_forms.test.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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'));

0 commit comments

Comments
 (0)