mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 05:28:35 +00:00
a7792bc5b4
Co-authored-by: Rhys Arkins <rhys@arkins.net>
15 lines
359 B
TypeScript
15 lines
359 B
TypeScript
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');
|
|
});
|
|
});
|
|
});
|