Download src/lib/codes.test.ts from HonzaH/Letschat: direct link, hf CLI and curl.
- Browser
- Download file 295 Bytes
-
https://huggingface.co/spaces/HonzaH/Letschat/resolve/main/src/lib/codes.test.ts
- Command line
-
hf download hf://spaces/HonzaH/Letschat/src/lib/codes.test.ts
-
curl -L -o codes.test.ts https://huggingface.co/spaces/HonzaH/Letschat/resolve/main/src/lib/codes.test.ts
295 Bytes
| import { describe, it, expect } from 'vitest' | |
| import { generateCode, validateCodeFormat } from './codes' | |
| describe('codes util', () => { | |
| it('generateCode format', () => { | |
| const c = generateCode() | |
| expect(c).toHaveLength(5) | |
| expect(validateCodeFormat(c)).toBe(true) | |
| }) | |
| }) | |