test: Fix missing theme provider in test
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
+2
-1
@@ -24,6 +24,7 @@ import {
|
||||
} from '@backstage/core-plugin-api';
|
||||
import { rest } from 'msw';
|
||||
import {
|
||||
renderInTestApp,
|
||||
setupRequestMockHandlers,
|
||||
TestApiProvider,
|
||||
} from '@backstage/test-utils';
|
||||
@@ -65,7 +66,7 @@ describe('AzureSitesOverviewWidget', () => {
|
||||
});
|
||||
|
||||
it('should display an overview table with the data from the requests', async () => {
|
||||
const rendered = render(
|
||||
const rendered = await renderInTestApp(
|
||||
<TestApiProvider apis={apis}>
|
||||
<AzureSitesOverviewTable data={[siteMock]} loading={false} />
|
||||
</TestApiProvider>,
|
||||
|
||||
Reference in New Issue
Block a user