test-utils: review fixes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -16,9 +16,8 @@
|
||||
|
||||
import React from 'react';
|
||||
import { createApiRef, useApiHolder } from '@backstage/core-plugin-api';
|
||||
import { TestApiProvider } from './TestApiProvider';
|
||||
import { TestApiProvider, TestApiRegistry } from './TestApiProvider';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { TestApiRegistry } from '.';
|
||||
|
||||
const xApiRef = createApiRef<{ a: string; b: number }>({
|
||||
id: 'x',
|
||||
|
||||
@@ -54,7 +54,7 @@ export class TestApiRegistry implements ApiHolder {
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* const apis = TestApiRegistry.with(
|
||||
* const apis = TestApiRegistry.from(
|
||||
* [configApiRef, new ConfigReader({})],
|
||||
* [identityApiRef, { getUserId: () => 'tester' }],
|
||||
* );
|
||||
|
||||
Reference in New Issue
Block a user