renovate/lib/workers/repository/process/extract-update.spec.ts
2020-03-05 21:57:24 +01:00

28 lines
720 B
TypeScript

import { extractAndUpdate } from './extract-update';
import * as _branchify from '../updates/branchify';
import { mocked } from '../../../../test/util';
jest.mock('./write');
jest.mock('./sort');
jest.mock('./fetch');
jest.mock('../updates/branchify');
jest.mock('../extract');
const branchify = mocked(_branchify);
branchify.branchifyUpgrades.mockReturnValueOnce({
branches: [],
branchList: [],
});
describe('workers/repository/process/extract-update', () => {
describe('extractAndUpdate()', () => {
it('runs', async () => {
const config = {
repoIsOnboarded: true,
suppressNotifications: ['deprecationWarningIssues'],
};
await extractAndUpdate(config);
});
});
});