mirror of
https://github.com/renovatebot/renovate.git
synced 2025-02-28 10:34:06 +00:00
13 lines
320 B
TypeScript
13 lines
320 B
TypeScript
import cmdSerializer from './cmd-serializer';
|
|
|
|
describe('logger/cmd-serializer', () => {
|
|
it('returns array', () => {
|
|
expect(cmdSerializer([''])).toEqual(['']);
|
|
});
|
|
|
|
it('redacts', () => {
|
|
expect(cmdSerializer(' https://token@domain.com')).toEqual(
|
|
' https://**redacted**@domain.com',
|
|
);
|
|
});
|
|
});
|