mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
8c10a3ec31
* chore: migrate config package to vitest * Update pnpm-lock.yaml * improve win32 test * Create moody-mugs-pay.md
8 lines
254 B
TypeScript
8 lines
254 B
TypeScript
import { expect, test } from 'vitest';
|
|
|
|
import { TOKEN_VALID_LENGTH, generateRandomSecretKey } from '../src/token';
|
|
|
|
test('token test valid length', () => {
|
|
const token = generateRandomSecretKey();
|
|
expect(token).toHaveLength(TOKEN_VALID_LENGTH);
|
|
});
|