mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
8554df5c61
Also convert usage of chai to jest
12 lines
269 B
TypeScript
12 lines
269 B
TypeScript
let prev: string;
|
|
|
|
export function print(val: any) {
|
|
return JSON.stringify(val);
|
|
}
|
|
export function test(val: any) {
|
|
if (['prBody', 'prTitle'].some(str => str === prev)) {
|
|
return typeof val === 'string' && val.includes('\n');
|
|
}
|
|
prev = val;
|
|
return false;
|
|
}
|