fix(techdocs-common) broken test

also copy yarn.lock from master; and yarn again

fix(techdocs-common): broken async test
This commit is contained in:
Himanshu Mishra
2020-12-22 12:24:56 +01:00
committed by Remi
parent d642507032
commit dc99b07447
@@ -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);
});
});