Skip to content

Commit

Permalink
fix: ts errors in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andymac4182 committed May 2, 2023
1 parent c16ee2d commit 21f640e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions packages/lib/src/Publisher.test.ts
Expand Up @@ -212,7 +212,7 @@ const markdownTestCases: MarkdownFile[] = [

class TestMermaidRenderer implements MermaidRenderer {
async captureMermaidCharts(
charts: ChartData[]
_charts: ChartData[]
): Promise<Map<string, Buffer>> {
const capturedCharts = new Map<string, Buffer>();
return capturedCharts;
Expand All @@ -226,8 +226,8 @@ class InMemoryAdaptor implements LoaderAdaptor {
this.inMemoryFiles = inMemoryFiles;
}
async updateMarkdownValues(
absoluteFilePath: string,
values: Partial<ConfluencePerPageAllValues>
_absoluteFilePath: string,
_values: Partial<ConfluencePerPageAllValues>
): Promise<void> {}

async loadMarkdownFile(absoluteFilePath: string): Promise<MarkdownFile> {
Expand All @@ -241,8 +241,8 @@ class InMemoryAdaptor implements LoaderAdaptor {
}

async readBinary(
path: string,
referencedFromFilePath: string
_path: string,
_referencedFromFilePath: string
): Promise<false | BinaryFile> {
throw new Error("Method not implemented.");
}
Expand Down Expand Up @@ -271,12 +271,16 @@ test("Upload to Confluence", async () => {
searchParams
);

settings.confluenceParentId = contentByTitle.results[0].id;
const pageResult = contentByTitle.results[0];
if (!pageResult) {
throw new Error("Missing Parent Page");
}
settings.confluenceParentId = pageResult.id;

const settingLoaders = [
new EnvironmentVariableSettingsLoader(),
new StaticSettingsLoader({
confluenceParentId: contentByTitle.results[0].id,
confluenceParentId: pageResult.id,
}),
new DefaultSettingsLoader(),
];
Expand Down

0 comments on commit 21f640e

Please sign in to comment.