mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -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);
|
|
});
|