mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-14 08:36:26 +00:00
28 lines
720 B
TypeScript
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);
|
|
});
|
|
});
|
|
});
|