0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 05:28:35 +00:00
renovatebot_renovate/lib/logger/config-serializer.spec.ts
2022-04-12 14:49:49 +00:00

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]',
});
});
});