mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 05:28:35 +00:00
17 lines
523 B
TypeScript
17 lines
523 B
TypeScript
import { massageThrowable } from './utils';
|
|
|
|
describe('instrumentation/utils', () => {
|
|
describe('massageThrowable', () => {
|
|
it.each`
|
|
input | expected
|
|
${null} | ${undefined}
|
|
${undefined} | ${undefined}
|
|
${new Error('test')} | ${'test'}
|
|
${'test'} | ${'test'}
|
|
${123} | ${'123'}
|
|
`('should return $expected for $input', ({ input, expected }) => {
|
|
expect(massageThrowable(input)).toEqual(expected);
|
|
});
|
|
});
|
|
});
|