Skip to content

Commit

Permalink
test(workers): fix autodiscover tests (#3762)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored and rarkins committed May 20, 2019
1 parent 0e787d4 commit 154f776
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/workers/global/autodiscover.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 154f776

Please sign in to comment.