Skip to content

Commit d897611

Browse files
committed
fixup! fixup! fixup! fixup! refactor: Use dynamic slot ids for pluggable pages.
1 parent 884d545 commit d897611

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugin-routes.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ jest.mock('@openedx/frontend-plugin-framework', () => ({
2828
describe('getPluginRoutes', () => {
2929
it('should return a valid route element for each plugin route', () => {
3030
const pluginRoutes = [
31-
{id: 'route-1', route: '/route-1'},
32-
{id: 'route-2', route: '/route-2'},
31+
{ id: 'route-1', route: '/route-1' },
32+
{ id: 'route-2', route: '/route-2' },
3333
];
3434
(getConfig as jest.Mock).mockImplementation(() => ({
3535
PLUGIN_ROUTES: pluginRoutes,
3636
}));
3737

3838
const { container } = render(getPluginRoutes());
3939

40-
pluginRoutes.forEach(({id}) => {
40+
pluginRoutes.forEach(({ id }) => {
4141
expect(container.querySelector(`[data-plugin-id="org.openedx.frontend.learning.course_page.${id}.v1"]`)).toBeInTheDocument();
4242
});
4343
expect(container.querySelectorAll('[data-testid="plugin-slot"]').length).toBe(pluginRoutes.length);

0 commit comments

Comments
 (0)