11import { createRoutingFactory , SpectatorRouting } from '@ngneat/spectator/jest' ;
22import {
33 Building ,
4+ MapsPeopleService ,
45 OrganisationService ,
56 Region ,
67 SettingsService ,
@@ -13,7 +14,6 @@ import {
1314 ExploreSpacesService ,
1415 ExploreStateService ,
1516 ExploreZonesService ,
16- ExploreZoomControlComponent ,
1717} from '@placeos/explore' ;
1818import { MockModule , MockProvider } from 'ng-mocks' ;
1919import { BehaviorSubject , of } from 'rxjs' ;
@@ -25,20 +25,19 @@ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
2525import {
2626 CustomTooltipComponent ,
2727 IconComponent ,
28- InteractiveMapComponent ,
2928} from '@placeos/components' ;
3029import { SpacePipe , SpacesService } from '@placeos/events' ;
3130import { AccessibilityControlsComponent } from '../app/accessibility-controls.component' ;
3231import { ExploreLevelSelectComponent } from '../app/explore-level-select.component' ;
3332import { ExploreComponent } from '../app/explore.component' ;
33+ import { DynamicMapComponent } from '../app/map-viewer/dynamic-map.component' ;
3434
3535describe ( 'ExploreComponent' , ( ) => {
3636 let spectator : SpectatorRouting < ExploreComponent > ;
3737 const createComponent = createRoutingFactory ( {
3838 component : ExploreComponent ,
3939 declarations : [
40- mockComponent ( InteractiveMapComponent ) ,
41- mockComponent ( ExploreZoomControlComponent ) ,
40+ mockComponent ( DynamicMapComponent ) ,
4241 mockComponent ( ExploreLevelSelectComponent ) ,
4342 mockComponent ( ExploreSearchComponent ) ,
4443 mockComponent ( IconComponent ) ,
@@ -75,6 +74,9 @@ describe('ExploreComponent', () => {
7574 active_building : new BehaviorSubject ( new Building ( { id : '1' } ) ) ,
7675 active_levels : new BehaviorSubject ( [ ] ) ,
7776 } ) ,
77+ MockProvider ( MapsPeopleService , {
78+ available$ : of ( false ) ,
79+ } ) ,
7880 ] ,
7981 imports : [ MockModule ( MatSlideToggleModule ) , FormsModule , MatMenuModule ] ,
8082 } ) ;
0 commit comments