mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-14 08:36:26 +00:00
14 lines
346 B
TypeScript
14 lines
346 B
TypeScript
import { readFileSync } from 'fs';
|
|
import { resolve } from 'upath';
|
|
import { extractPackageFile } from '.';
|
|
|
|
const input = readFileSync(
|
|
resolve(__dirname, `./__fixtures__/sample.txt`),
|
|
'utf8'
|
|
);
|
|
|
|
describe('manager/cdnurl/extract', () => {
|
|
it('extractPackageFile', () => {
|
|
expect(extractPackageFile(input)).toMatchSnapshot();
|
|
});
|
|
});
|