renovate/lib/manager/cdnurl/extract.spec.ts
2020-11-12 21:46:08 +01:00

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();
});
});