Skip to content

Commit

Permalink
Fix front-end unit tests (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-uha authored Aug 2, 2023
1 parent 0b9c99c commit c493165
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { KeycloakService } from 'keycloak-angular';

import { APP_CONFIG, APP_DI_CONFIG } from '@app/app.config';
import { PartyService } from '@app/core/party/party.service';
import { ToastService } from '@app/core/services/toast.service';

import { BcProviderEditInitialStateModel } from '../access/pages/bc-provider-edit/bc-provider-edit.component';
import { BcProviderEditResource } from '../access/pages/bc-provider-edit/bc-provider-edit.resource';
Expand Down Expand Up @@ -86,6 +87,7 @@ describe('PortalPage', () => {
provideAutoSpy(BcProviderEditResource),
provideAutoSpy(EndorsementsResource),
provideAutoSpy(KeycloakService),
provideAutoSpy(ToastService),
],
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
Input,
Output,
QueryList,
forwardRef,
} from '@angular/core';

import {
Expand Down Expand Up @@ -37,9 +38,13 @@ export class FormSectionComponent {
* Detect whether the section is being used to display contextual
* help for a specific form section, or removing a control (default)
*/
@ContentChildren(ContextHelpTitleDirective, { descendants: false })
@ContentChildren(forwardRef(() => ContextHelpTitleDirective), {
descendants: false,
})
public contextHelpTitleChildren?: QueryList<ContextHelpTitleDirective>;
@ContentChildren(ContextHelpContentDirective, { descendants: false })
@ContentChildren(forwardRef(() => ContextHelpContentDirective), {
descendants: false,
})
public contextHelpContentChildren?: QueryList<ContextHelpContentDirective>;

public constructor() {
Expand Down

0 comments on commit c493165

Please sign in to comment.