message: change wrapper back to global declaration
diff: @@ -56,8 +56,6 @@ const techdocsApiMock = {
  getTechDocsMetadata: jest.fn().mockResolvedValue(mockTechDocsMetadata),
  };
  -describe('useTechDocsReaderPage', () => {
  - describe('when legacyUseCaseSensitiveTripletPaths is false', () => {
  const configApiMock = {
  getOptionalBoolean: jest.fn().mockReturnValue(undefined),
  };
  @@ -76,8 +74,8 @@ describe('useTechDocsReaderPage', () => {
  <ThemeProvider theme={lightTheme}>
  <TestApiProvider
  apis={[
  - [techdocsApiRef, techdocsApiMock],
  [configApiRef, configApiMock],
  + [techdocsApiRef, techdocsApiMock],
  ]}
  >
  <TechDocsReaderPageProvider entityRef={entityRef}>
  @@ -87,6 +85,7 @@ describe('useTechDocsReaderPage', () => {
  </ThemeProvider>
  );
  +describe('useTechDocsReaderPage', () => {
  it('should set title', async () => {
  const { result, waitForNextUpdate } = renderHook(
  () => useTechDocsReaderPage(),
  @@ -135,7 +134,7 @@ describe('useTechDocsReaderPage', () => {
  );
  });
  - it('should set entityRef as lowercase', async () => {
  + it('should set entityRef as lowercase when legacyUseCaseSensitiveTripletPaths is false', async () => {
  const lowercaseEntityRef = {
  kind: mockEntityMetadata.kind.toLocaleLowerCase(),
  name: mockEntityMetadata.metadata.name.toLocaleLowerCase(),
  @@ -145,39 +144,9 @@ describe('useTechDocsReaderPage', () => {
  expect(result.current.entityRef).toStrictEqual(lowercaseEntityRef);
  });
  - });
  -
  - describe('when legacyUseCaseSensitiveTripletPaths is true', () => {
  - const configApiMock = {
  - getOptionalBoolean: jest.fn().mockReturnValue(true),
  - };
  -
  - const wrapper = ({
  - entityRef = {
  - kind: mockEntityMetadata.kind,
  - name: mockEntityMetadata.metadata.name,
  - namespace: mockEntityMetadata.metadata.namespace!!,
  - },
  - children,
  - }: {
  - entityRef?: CompoundEntityRef;
  - children: React.ReactNode;
  - }) => (
  - <ThemeProvider theme={lightTheme}>
  - <TestApiProvider
  - apis={[
  - [techdocsApiRef, techdocsApiMock],
  - [configApiRef, configApiMock],
  - ]}
  - >
  - <TechDocsReaderPageProvider entityRef={entityRef}>
  - {children}
  - </TechDocsReaderPageProvider>
  - </TestApiProvider>
  - </ThemeProvider>
  - );
  - it('entityRef is not modified', async () => {
  + it('entityRef is not modified when legacyUseCaseSensitiveTripletPaths is true', async () => {
  + configApiMock.getOptionalBoolean.mockReturnValueOnce(true);
  const caseSensitiveEntityRef = {
  kind: mockEntityMetadata.kind,
  name: mockEntityMetadata.metadata.name,
  @@ -189,4 +158,3 @@ describe('useTechDocsReaderPage', () => {
  expect(result.current.entityRef).toStrictEqual(caseSensitiveEntityRef);
  });
  });
  -});
  