2021-10-29 10:33:05 -05:00
|
|
|
import { TOKEN_VALID_LENGTH, generateRandomSecretKey } from '../src/token';
|
2020-10-03 07:47:04 -05:00
|
|
|
|
|
|
|
test('token test valid length', () => {
|
|
|
|
const token = generateRandomSecretKey();
|
|
|
|
expect(token).toHaveLength(TOKEN_VALID_LENGTH);
|
|
|
|
});
|