From 7ff56c23309ae0da66f3561aa425615ba27e3dee Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Thu, 18 Nov 2021 11:28:26 +0100 Subject: [PATCH] test-utils: doc + API report fixup Signed-off-by: Patrik Oldsberg --- packages/test-utils/api-report.md | 3 +-- packages/test-utils/src/testUtils/TestApiProvider.tsx | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/test-utils/api-report.md b/packages/test-utils/api-report.md index a1f22a7a64..83c209122d 100644 --- a/packages/test-utils/api-report.md +++ b/packages/test-utils/api-report.md @@ -191,11 +191,10 @@ export type TestApiProviderProps = { // @public export class TestApiRegistry implements ApiHolder { - // (undocumented) - get(api: ApiRef): T | undefined; static from( ...apis: readonly [...TestApiProviderPropsApiPairs] ): TestApiRegistry; + get(api: ApiRef): T | undefined; } // @public diff --git a/packages/test-utils/src/testUtils/TestApiProvider.tsx b/packages/test-utils/src/testUtils/TestApiProvider.tsx index 43774b7267..4408fc5b36 100644 --- a/packages/test-utils/src/testUtils/TestApiProvider.tsx +++ b/packages/test-utils/src/testUtils/TestApiProvider.tsx @@ -73,7 +73,11 @@ export class TestApiRegistry implements ApiHolder { private constructor(private readonly apis: Map) {} - /** {@inheritdoc @backstage/core-plugin-api#ApiHolder.get} */ + /** + * Returns an implementation of the API. + * + * @public + */ get(api: ApiRef): T | undefined { return this.apis.get(api.id) as T | undefined; }