chore: fixing tests

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-03-01 14:03:08 +01:00
parent 6fe5d70cac
commit aa69677928
2 changed files with 20 additions and 2 deletions
+10 -1
View File
@@ -19,6 +19,7 @@ import { Route } from 'react-router';
import { renderInTestApp, TestApiProvider } from '@backstage/test-utils';
import { todoPlugin, EntityTodoContent } from './plugin';
import { todoApiRef } from './api';
import { EntityProvider } from '@backstage/plugin-catalog-react';
describe('todo', () => {
it('should export plugin', () => {
@@ -47,7 +48,15 @@ describe('todo', () => {
],
]}
>
<Route path="/" element={<EntityTodoContent />} />
<EntityProvider
entity={{
apiVersion: 'backstage/v1alpha1 ',
kind: 'Component',
metadata: { name: 'Test TODO' },
}}
>
<Route path="/" element={<EntityTodoContent />} />
</EntityProvider>
</TestApiProvider>,
);