@@ -2,9 +2,9 @@ import { shallow } from '@edx/react-unit-test-utils';
22
33import { reduxHooks } from 'hooks' ;
44
5+ import EnterpriseDashboardModal from 'containers/EnterpriseDashboardModal' ;
56import SelectSessionModal from 'containers/SelectSessionModal' ;
67import CoursesPanel from 'containers/CoursesPanel' ;
7- import EnterpriseDashboardModalSlot from 'plugin-slots/EnterpriseDashboardModalSlot' ;
88
99import DashboardLayout from './DashboardLayout' ;
1010import LoadingView from './LoadingView' ;
@@ -20,7 +20,7 @@ jest.mock('hooks', () => ({
2020 } ,
2121} ) ) ;
2222
23- jest . mock ( 'plugin-slots/EnterpriseDashboardModalSlot ' , ( ) => 'EnterpriseDashboardModalSlot ' ) ;
23+ jest . mock ( 'containers/EnterpriseDashboardModal ' , ( ) => 'EnterpriseDashboardModal ' ) ;
2424jest . mock ( 'containers/CoursesPanel' , ( ) => 'CoursesPanel' ) ;
2525jest . mock ( './LoadingView' , ( ) => 'LoadingView' ) ;
2626jest . mock ( './DashboardLayout' , ( ) => 'DashboardLayout' ) ;
@@ -81,7 +81,7 @@ describe('Dashboard', () => {
8181 testContent ( contentEl ) ;
8282 } ) ;
8383 it ( `${ renderString ( showEnterpriseModal ) } dashbaord modal` , ( ) => {
84- expect ( wrapper . instance . findByType ( EnterpriseDashboardModalSlot ) . length )
84+ expect ( wrapper . instance . findByType ( EnterpriseDashboardModal ) . length )
8585 . toEqual ( showEnterpriseModal ? 1 : 0 ) ;
8686 } ) ;
8787 it ( `${ renderString ( showSelectSessionModal ) } select session modal` , ( ) => {
0 commit comments