mirror of https://github.com/renovatebot/renovate
23 lines
484 B
TypeScript
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]',
|
|
});
|
|
});
|
|
});
|