mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
e367c3f1e0
* feat: improve legacy token signature by removing deprecated crypto.createDecipher * fix: wrong reference * chore: add debug
7 lines
214 B
TypeScript
7 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);
|
|
});
|