feat: standardize slot ids (#1854)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# AdditionalCourseContentPluginSlot
|
||||
|
||||
### Slot ID: `org.openedx.frontend.authoring.additional_course_content_plugin.v1`
|
||||
|
||||
### Slot ID Aliases
|
||||
* `additional_course_content_plugin`
|
||||
@@ -0,0 +1,12 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`AdditionalCourseContentPluginSlot renders 1`] = `
|
||||
<PluginSlot
|
||||
id="org.openedx.frontend.authoring.additional_course_content_plugin.v1"
|
||||
idAliases={
|
||||
[
|
||||
"additional_course_content_plugin",
|
||||
]
|
||||
}
|
||||
/>
|
||||
`;
|
||||
@@ -0,0 +1,15 @@
|
||||
import { shallow } from '@edx/react-unit-test-utils';
|
||||
import { AdditionalCourseContentPluginSlot } from '.';
|
||||
|
||||
jest.mock('@openedx/frontend-plugin-framework', () => ({
|
||||
PluginSlot: 'PluginSlot',
|
||||
}));
|
||||
|
||||
describe('AdditionalCourseContentPluginSlot', () => {
|
||||
beforeEach(() => jest.resetAllMocks());
|
||||
|
||||
it('renders', () => {
|
||||
const wrapper = shallow(<AdditionalCourseContentPluginSlot />);
|
||||
expect(wrapper.snapshot).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
import { PluginSlot } from '@openedx/frontend-plugin-framework/dist';
|
||||
import React from 'react';
|
||||
|
||||
export const AdditionalCourseContentPluginSlot = () => (
|
||||
<PluginSlot
|
||||
id="org.openedx.frontend.authoring.additional_course_content_plugin.v1"
|
||||
idAliases={['additional_course_content_plugin']}
|
||||
/>
|
||||
);
|
||||
Reference in New Issue
Block a user