plugins: fix tests for react router bump
Co-authored-by: Fredrik Adelöw <freben@gmail.com> Co-authored-by: blam <ben@blam.sh> Co-authored-by: Johan Haals <johan.haals@gmail.com> Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Route } from 'react-router';
|
||||
import { Route, Routes } from 'react-router';
|
||||
import { renderInTestApp, TestApiProvider } from '@backstage/test-utils';
|
||||
import { todoPlugin, EntityTodoContent } from './plugin';
|
||||
import { todoApiRef } from './api';
|
||||
@@ -55,7 +55,9 @@ describe('todo', () => {
|
||||
metadata: { name: 'Test TODO' },
|
||||
}}
|
||||
>
|
||||
<Route path="/" element={<EntityTodoContent />} />
|
||||
<Routes>
|
||||
<Route path="/" element={<EntityTodoContent />} />
|
||||
</Routes>
|
||||
</EntityProvider>
|
||||
</TestApiProvider>,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user