Skip to content
Snippets Groups Projects
Commit d14dc682 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6305 OZG-6463 fix unit test

parent b37e2703
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ import {
mock,
} from '@alfa-client/test-utils';
import { OzgcloudDialogService } from '@alfa-client/ui';
import { DialogRef } from '@angular/cdk/dialog';
import { DialogConfig, DialogRef } from '@angular/cdk/dialog';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FormControl } from '@angular/forms';
import { getUrl } from '@ngxp/rest';
......@@ -108,11 +108,17 @@ describe('OrganisationsEinheitContainerComponent', () => {
});
it('should call dialog service', () => {
const DIALOG_CONFIG: DialogConfig = {
backdropClass: ['backdrop-blur-1', 'bg-greybackdrop'],
};
component.openSearchDialog();
expect(dialogService.openInCallingComponentContext).toHaveBeenCalledWith(
SearchOrganisationsEinheitContainerComponent,
component.viewContainerRef,
null,
DIALOG_CONFIG,
);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment