blob: 358c42027ace94092524fe1ea74e0e7a47255b39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { isBase64URLString } from './isBase64URLString';
test('should return true when input is base64URLString', () => {
const actual = isBase64URLString('U2ltcGxlV2ViQXV0aG4');
expect(actual).toEqual(true);
});
test('should return false when input is not base64URLString', () => {
const actual = isBase64URLString('U2ltcGxlV2ViQXV0aG4+');
expect(actual).toEqual(false);
});
test('should return false when input is blank', () => {
const actual = isBase64URLString('');
expect(actual).toEqual(false);
});
|