mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-27 06:13:17 -05:00
16 lines
345 B
TypeScript
16 lines
345 B
TypeScript
import { base64URLEncode, challenge, verifier } from '.';
|
|
|
|
describe('utils', () => {
|
|
test('base64URLEncode', () => {
|
|
expect(base64URLEncode(Buffer.from('test'))).toEqual('dGVzdA');
|
|
});
|
|
|
|
test('verifier', () => {
|
|
expect(verifier).toHaveLength(43);
|
|
});
|
|
|
|
test('challenge', () => {
|
|
expect(challenge).toHaveLength(43);
|
|
});
|
|
});
|