Skip to content

Commit bda5244

Browse files
committed
test: fix tests
1 parent da71444 commit bda5244

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

apps/map-kiosk/src/tests/explore.component.spec.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { createRoutingFactory, SpectatorRouting } from '@ngneat/spectator/jest';
22
import {
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';
1818
import { MockModule, MockProvider } from 'ng-mocks';
1919
import { BehaviorSubject, of } from 'rxjs';
@@ -25,20 +25,19 @@ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
2525
import {
2626
CustomTooltipComponent,
2727
IconComponent,
28-
InteractiveMapComponent,
2928
} from '@placeos/components';
3029
import { SpacePipe, SpacesService } from '@placeos/events';
3130
import { AccessibilityControlsComponent } from '../app/accessibility-controls.component';
3231
import { ExploreLevelSelectComponent } from '../app/explore-level-select.component';
3332
import { ExploreComponent } from '../app/explore.component';
33+
import { DynamicMapComponent } from '../app/map-viewer/dynamic-map.component';
3434

3535
describe('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

Comments
 (0)