blob: e7cdb0816c546436b5ab01523996bd1d0837e37f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { maskToken } from './mask';
describe('util/mask', () => {
describe('.maskToken', () => {
it('returns empty string if passed value is falsy', () => {
expect(maskToken()).toBe('');
expect(maskToken('')).toBe('');
});
it('hides value content', () => {
expect(maskToken('123456789')).toBe('12*****89');
});
});
});
|