mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
e367c3f1e0
* feat: improve legacy token signature by removing deprecated crypto.createDecipher * fix: wrong reference * chore: add debug
6 lines
214 B
TypeScript
6 lines
214 B
TypeScript
import { generateRandomSecretKey, TOKEN_VALID_LENGTH } from '../src/token';
|
|
|
|
test('token test valid length', () => {
|
|
const token = generateRandomSecretKey();
|
|
expect(token).toHaveLength(TOKEN_VALID_LENGTH);
|
|
});
|