Skip to content

Commit

Permalink
test(compositions): Fix failing compositions test
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipLeitner committed Feb 1, 2024
1 parent 5f3301c commit e526455
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion projects/hslayers/src/testing/compositions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ import {HttpClientTestingModule} from '@angular/common/http/testing';
import {BehaviorSubject, Subject, of} from 'rxjs';
import {NgbDropdownModule} from '@ng-bootstrap/ng-bootstrap';

import {HsAddDataVectorService} from 'hslayers-ng/shared/add-data';
import {
HsAddDataVectorService,
HsAddDataVectorUtilsService,
} from 'hslayers-ng/shared/add-data';
import {HsCommonEndpointsService} from 'hslayers-ng/shared/endpoints';
import {HsCommonLaymanService} from 'hslayers-ng/common/layman';
import {HsCompositionsCatalogueService} from 'hslayers-ng/components/compositions';
Expand Down Expand Up @@ -131,6 +134,7 @@ describe('compositions', () => {
const mockedUtilsService: any = new HsUtilsServiceMock();
const mockedConfig = new HsConfigMock();
const mockedMapService: any = new HsMapServiceMock();
const mockedVectorUtilsService = new HsAddDataVectorUtilsService(null);
const mockedCommonLaymanService = new hsCommonLaymanServiceMock();
const mockedStylerService = jasmine.createSpyObj('HsStylerService', [
'parseStyle',
Expand Down Expand Up @@ -192,6 +196,7 @@ describe('compositions', () => {
mockedMapService,
mockedStylerService,
mockedUtilsService,
mockedVectorUtilsService,
),
},
{
Expand Down

0 comments on commit e526455

Please sign in to comment.