core-compat-api: update collectLegacyRoutes test to include app plugin

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-08-27 13:12:27 +02:00
parent 03e9125c0e
commit 49a463c577
@@ -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();
});