+7
-7
@@ -22,10 +22,10 @@ import {
|
||||
renderInTestApp,
|
||||
} from '@backstage/test-utils';
|
||||
|
||||
import { CalendarCardContainer } from '.';
|
||||
import { HomePageCalendar } from '.';
|
||||
import { gcalendarApiRef, gcalendarPlugin } from '../..';
|
||||
|
||||
describe('<CalendarCard />', () => {
|
||||
describe('<HomePageCalendar />', () => {
|
||||
const primaryCalendar = {
|
||||
id: 'test-1@test.com',
|
||||
summary: 'test-1@test.com',
|
||||
@@ -71,7 +71,7 @@ describe('<CalendarCard />', () => {
|
||||
[googleAuthApiRef, getAuthMockApi('')],
|
||||
]}
|
||||
>
|
||||
<CalendarCardContainer />
|
||||
<HomePageCalendar />
|
||||
</TestApiProvider>,
|
||||
);
|
||||
|
||||
@@ -86,7 +86,7 @@ describe('<CalendarCard />', () => {
|
||||
[googleAuthApiRef, getAuthMockApi()],
|
||||
]}
|
||||
>
|
||||
<CalendarCardContainer />
|
||||
<HomePageCalendar />
|
||||
</TestApiProvider>,
|
||||
);
|
||||
|
||||
@@ -102,7 +102,7 @@ describe('<CalendarCard />', () => {
|
||||
[googleAuthApiRef, getAuthMockApi()],
|
||||
]}
|
||||
>
|
||||
<CalendarCardContainer />
|
||||
<HomePageCalendar />
|
||||
</TestApiProvider>,
|
||||
);
|
||||
|
||||
@@ -120,7 +120,7 @@ describe('<CalendarCard />', () => {
|
||||
[googleAuthApiRef, getAuthMockApi()],
|
||||
]}
|
||||
>
|
||||
<CalendarCardContainer />
|
||||
<HomePageCalendar />
|
||||
</TestApiProvider>,
|
||||
);
|
||||
|
||||
@@ -141,7 +141,7 @@ describe('<CalendarCard />', () => {
|
||||
[storageApiRef, mockStorage],
|
||||
]}
|
||||
>
|
||||
<CalendarCardContainer />
|
||||
<HomePageCalendar />
|
||||
</TestApiProvider>,
|
||||
);
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ import { CalendarCard } from './CalendarCard';
|
||||
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
export const CalendarCardContainer = () => {
|
||||
export const HomePageCalendar = () => {
|
||||
return (
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<CalendarCard />
|
||||
@@ -13,4 +13,4 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export { CalendarCardContainer } from './CalendarCardContainer';
|
||||
export { HomePageCalendar } from './HomePageCalendar';
|
||||
|
||||
@@ -13,5 +13,5 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export { gcalendarPlugin, CalendarCard } from './plugin';
|
||||
export { gcalendarPlugin, HomePageCalendar } from './plugin';
|
||||
export * from './api';
|
||||
|
||||
@@ -40,12 +40,12 @@ export const gcalendarPlugin = createPlugin({
|
||||
],
|
||||
});
|
||||
|
||||
export const CalendarCard = gcalendarPlugin.provide(
|
||||
export const HomePageCalendar = gcalendarPlugin.provide(
|
||||
createComponentExtension({
|
||||
name: 'CalendarCard',
|
||||
name: 'HomePageCalendar',
|
||||
component: {
|
||||
lazy: () =>
|
||||
import('./components/CalendarCard').then(m => m.CalendarCardContainer),
|
||||
import('./components/CalendarCard').then(m => m.HomePageCalendar),
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user