From 54b2ae61adc5e7f59ba1a4c16548e023034a3aaa Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Tue, 19 May 2020 12:57:31 +0200 Subject: [PATCH] chore: remove unused test --- lib/platform/gitlab/index.spec.ts | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/lib/platform/gitlab/index.spec.ts b/lib/platform/gitlab/index.spec.ts index 4f05b32079..e75e7b082e 100644 --- a/lib/platform/gitlab/index.spec.ts +++ b/lib/platform/gitlab/index.spec.ts @@ -1191,27 +1191,6 @@ describe('platform/gitlab', () => { expect(httpMock.getTrace()).toMatchSnapshot(); }); }); - describe('getPrFiles()', () => { - it('should return empty if no mrNo is passed', async () => { - const prFiles = await gitlab.getPrFiles(0); - expect(prFiles).toEqual([]); - }); - it('returns files', async () => { - httpMock - .scope(gitlabApiHost) - .get('/api/v4/projects/undefined/merge_requests/123/changes') - .reply(200, { - changes: [ - { new_path: 'renovate.json' }, - { new_path: 'not renovate.json' }, - ], - }); - const prFiles = await gitlab.getPrFiles(123); - expect(prFiles).toMatchSnapshot(); - expect(prFiles).toHaveLength(2); - expect(httpMock.getTrace()).toMatchSnapshot(); - }); - }); describe('updatePr(prNo, title, body)', () => { jest.resetAllMocks(); it('updates the PR', async () => { -- GitLab