Modify tests to include new config param in LocalPublish

This commit is contained in:
Himanshu Mishra
2020-11-17 20:19:30 +01:00
parent 65edcdee22
commit c01bf361a4
2 changed files with 4 additions and 2 deletions
@@ -53,7 +53,7 @@ export async function startStandaloneServer(
const techdocsGenerator = new TechdocsGenerator(logger, config);
generators.register('techdocs', techdocsGenerator);
const publisher = new LocalPublish(logger);
const publisher = new LocalPublish(logger, config);
const dockerClient = new Docker();
@@ -18,6 +18,7 @@
import fs from 'fs-extra';
import path from 'path';
import { getVoidLogger } from '@backstage/backend-common';
import { ConfigReader } from '@backstage/config';
import { LocalPublish } from './local';
const createMockEntity = (annotations = {}) => {
@@ -37,7 +38,8 @@ const logger = getVoidLogger();
describe('local publisher', () => {
it('should publish generated documentation dir', async () => {
const publisher = new LocalPublish(logger);
const testConfig = ConfigReader.fromConfigs([{ context: '', data: {} }]);
const publisher = new LocalPublish(logger, testConfig);
const mockEntity = createMockEntity();