mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
13 lines
340 B
JavaScript
13 lines
340 B
JavaScript
const { maskToken } = require('../../lib/util/mask');
|
|
|
|
describe('util/mask', () => {
|
|
describe('.maskToken', () => {
|
|
it('returns value if passed value is falsy', () => {
|
|
expect(maskToken('')).toEqual('');
|
|
});
|
|
|
|
it('hides value content', () => {
|
|
expect(maskToken('123456789')).toEqual('12*****89');
|
|
});
|
|
});
|
|
});
|