0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/packages/config/test/token.spec.ts
Juan Picado e367c3f1e0 feat: improve legacy token signature by removing deprecated crypto.cr… (#1953)
* feat: improve legacy token signature by removing deprecated crypto.createDecipher

* fix: wrong reference

* chore: add debug
2021-04-09 17:54:21 +02:00

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);
});