From dc99b07447b8399f01c170d8272cffe12016dab3 Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Tue, 22 Dec 2020 12:24:56 +0100 Subject: [PATCH] fix(techdocs-common) broken test also copy yarn.lock from master; and yarn again fix(techdocs-common): broken async test --- .../techdocs-common/src/stages/publish/publish.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/techdocs-common/src/stages/publish/publish.test.ts b/packages/techdocs-common/src/stages/publish/publish.test.ts index 43c8101651..d7cc257b89 100644 --- a/packages/techdocs-common/src/stages/publish/publish.test.ts +++ b/packages/techdocs-common/src/stages/publish/publish.test.ts @@ -83,7 +83,7 @@ describe('Publisher', () => { expect(publisher).toBeInstanceOf(GoogleGCSPublish); }); - it('should create AWS S3 publisher from config', () => { + it('should create AWS S3 publisher from config', async () => { const mockConfig = new ConfigReader({ techdocs: { requestUrl: 'http://localhost:7000', @@ -100,7 +100,10 @@ describe('Publisher', () => { }, }); - const publisher = Publisher.fromConfig(mockConfig, logger, testDiscovery); + const publisher = await Publisher.fromConfig(mockConfig, { + logger, + discovery, + }); expect(publisher).toBeInstanceOf(AwsS3Publish); }); });