1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01: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

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