Spaces:
Runtime error
Runtime error
Download src/lib/__tests__/auth.test.ts from dvijaykrishnan/vault-video-processor: direct link, hf CLI and curl.
- Browser
- Download file 667 Bytes
-
https://huggingface.co/spaces/dvijaykrishnan/vault-video-processor/resolve/main/src/lib/__tests__/auth.test.ts
- Command line
-
hf download hf://spaces/dvijaykrishnan/vault-video-processor/src/lib/__tests__/auth.test.ts
-
curl -L -o auth.test.ts https://huggingface.co/spaces/dvijaykrishnan/vault-video-processor/resolve/main/src/lib/__tests__/auth.test.ts
667 Bytes
| import { describe, it, expect } from 'vitest'; | |
| import { auth } from '../auth'; | |
| import { authClient } from '../auth-client'; | |
| // Mock better-auth if needed, but for now checking exports | |
| describe('Auth Configuration', () => { | |
| it('should export auth instance', () => { | |
| expect(auth).toBeDefined(); | |
| // Check for api property which typical better-auth instance has | |
| expect(auth.api).toBeDefined(); | |
| }); | |
| it('should export auth client', () => { | |
| expect(authClient).toBeDefined(); | |
| // Check for signIn/signUp methods | |
| expect(authClient.signIn).toBeDefined(); | |
| expect(authClient.signUp).toBeDefined(); | |
| }); | |
| }); | |