core-compat-api: update collectLegacyRoutes test to include app plugin
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -262,7 +262,15 @@ describe('collectLegacyRoutes', () => {
|
||||
component: () =>
|
||||
Promise.resolve(() => {
|
||||
const app = useApp();
|
||||
return <div>plugins: {app.getPlugins().map(p => p.getId())}</div>;
|
||||
return (
|
||||
<div>
|
||||
plugins:{' '}
|
||||
{app
|
||||
.getPlugins()
|
||||
.map(p => p.getId())
|
||||
.join(', ')}
|
||||
</div>
|
||||
);
|
||||
}),
|
||||
}),
|
||||
);
|
||||
@@ -276,7 +284,7 @@ describe('collectLegacyRoutes', () => {
|
||||
render(createSpecializedApp({ features }).createRoot());
|
||||
|
||||
await expect(
|
||||
screen.findByText('plugins: test'),
|
||||
screen.findByText('plugins: app, test'),
|
||||
).resolves.toBeInTheDocument();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user