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