renovate/lib/logger/config-serializer.spec.ts

23 lines
484 B
TypeScript

import configSerializer from './config-serializer';
describe('logger/config-serializer', () => {
it('squashes templates', () => {
const config = {
nottoken: 'b',
prBody: 'foo',
};
expect(configSerializer(config)).toMatchSnapshot({
prBody: '[Template]',
});
});
it('suppresses content', () => {
const config = {
content: {},
};
expect(configSerializer(config)).toMatchSnapshot({
content: '[content]',
});
});
});