mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 05:28:35 +00:00
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]',
|
|
});
|
|
});
|
|
});
|