From 154f776ceb132cf36f70bb835a9442fd3b5eb906 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Mon, 20 May 2019 13:50:58 +0200 Subject: [PATCH] test(workers): fix autodiscover tests (#3762) --- test/workers/global/autodiscover.spec.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/workers/global/autodiscover.spec.js b/test/workers/global/autodiscover.spec.js index 8d88e638a5fcfb..bbd5adc5792425 100644 --- a/test/workers/global/autodiscover.spec.js +++ b/test/workers/global/autodiscover.spec.js @@ -9,10 +9,14 @@ jest.mock('../../../lib/platform/github'); describe('lib/workers/global/autodiscover', () => { let config; - beforeEach(() => { + beforeEach(async () => { jest.resetAllMocks(); config = {}; - platform.initPlatform({ platform: 'github', token: 'abc123' }); + await platform.initPlatform({ + platform: 'github', + token: 'abc123', + endpoint: 'endpoint', + }); }); it('returns if not autodiscovering', async () => { expect(await autodiscoverRepositories(config)).toEqual(config);