security-c4po/security-c4po-angular/src/shared/modules/comment-dialog/service/comment-dialog.service.mock.ts

19 lines
636 B
TypeScript

import {CommentDialogService} from '@shared/modules/comment-dialog/service/comment-dialog.service';
import {ComponentType} from '@angular/cdk/overlay';
import {NbDialogConfig} from '@nebular/theme';
import {Observable, of} from 'rxjs';
import {Comment} from '@shared/models/comment.model';
export class CommentDialogServiceMock implements Required<CommentDialogService> {
dialog: any;
openCommentDialog(
componentOrTemplateRef: ComponentType<any>,
findingIds: [],
comment: Comment | undefined,
config: Partial<NbDialogConfig<Partial<any> | string>> | undefined): Observable<any> {
return of(undefined);
}
}