Update test string
Signed-off-by: Morgan Bentell <morgan.bentell@gmail.com>
This commit is contained in:
+2
-2
@@ -73,7 +73,7 @@ const techdocsStorageApiMock: jest.Mocked<typeof techdocsStorageApiRef.T> = {
|
||||
|
||||
const PageMock = () => {
|
||||
const { namespace, kind, name } = useParams();
|
||||
return <>{`LayoutMock: ${namespace}#${kind}#${name}`}</>;
|
||||
return <>{`PageMock: ${namespace}#${kind}#${name}`}</>;
|
||||
};
|
||||
|
||||
jest.mock('@backstage/core-components', () => ({
|
||||
@@ -189,7 +189,7 @@ describe('<TechDocsReaderPage />', () => {
|
||||
);
|
||||
|
||||
expect(
|
||||
rendered.getByText(`LayoutMock: ${namespace}#${kind}#${name}`),
|
||||
rendered.getByText(`PageMock: ${namespace}#${kind}#${name}`),
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user