Spaces:
Sleeping
Sleeping
Download app/src/env.test.ts from Junyueeeeee/SparkSplat-Viewer: direct link, hf CLI and curl.
- Browser
- Download file 527 Bytes
-
https://huggingface.co/spaces/Junyueeeeee/SparkSplat-Viewer/resolve/main/app/src/env.test.ts
- Command line
-
hf download hf://spaces/Junyueeeeee/SparkSplat-Viewer/app/src/env.test.ts
-
curl -L -o env.test.ts https://huggingface.co/spaces/Junyueeeeee/SparkSplat-Viewer/resolve/main/app/src/env.test.ts
527 Bytes
| import { describe, it, expect } from 'vitest' | |
| import dotenv from 'dotenv' | |
| import path from 'path' | |
| dotenv.config({ path: path.resolve(__dirname, '../../.env') }) | |
| describe('env vars', () => { | |
| it('WORLD_LABS_API_KEY is set', () => { | |
| expect(typeof process.env.WORLD_LABS_API_KEY).toBe('string') | |
| expect(process.env.WORLD_LABS_API_KEY!.length).toBeGreaterThan(0) | |
| }) | |
| it('FAL_KEY is set', () => { | |
| expect(typeof process.env.FAL_KEY).toBe('string') | |
| expect(process.env.FAL_KEY!.length).toBeGreaterThan(0) | |
| }) | |
| }) | |