blob: 545ff9390e3ba5f2895144086910a2f5f1eb9504 (
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);
});
|