Skip to content

Commit 55c45ae

Browse files
author
Andrea Barbasso
committed
[DSC-2858] fix tests build
1 parent 5bd57ba commit 55c45ae

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/app/core/auth/auth.effects.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ describe('AuthEffects', () => {
202202
});
203203

204204
describe('when token is not valid but also not expired (~ cookie)', () => {
205-
it('should return a AUTHENTICATED_ERROR action in response to a AUTHENTICATED action', () => {
205+
it('should return a AUTHENTICATED_ERROR action in response to a AUTHENTICATED action', (done) => {
206206
spyOn((authEffects as any).authService, 'authenticatedUser').and.returnValue(observableThrow(new Error('Message Error test')));
207207

208208
actions = hot('--a-', { a: new AuthenticatedAction(token, true) });

src/app/process-page/overview/table/process-overview-table.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from '@angular/core/testing';
77
import { By } from '@angular/platform-browser';
88
import { RouterTestingModule } from '@angular/router/testing';
9-
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
9+
import { NgbCollapseModule, NgbModal } from '@ng-bootstrap/ng-bootstrap';
1010
import {
1111
TranslateModule,
1212
TranslateService,
@@ -152,7 +152,7 @@ describe('ProcessOverviewTableComponent', () => {
152152
translateServiceSpy = jasmine.createSpyObj('TranslateService', ['get']);
153153

154154
void TestBed.configureTestingModule({
155-
imports: [TranslateModule.forRoot(), RouterTestingModule.withRoutes([]), VarDirective, ProcessOverviewTableComponent, NgbCollapse],
155+
imports: [TranslateModule.forRoot(), RouterTestingModule.withRoutes([]), VarDirective, ProcessOverviewTableComponent, NgbCollapseModule],
156156
providers: [
157157
{ provide: ProcessOverviewService, useValue: processOverviewService },
158158
{ provide: ProcessDataService, useValue: processService },

src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ describe('DsDynamicFormControlContainerComponent test suite', () => {
445445

446446
it('should call announceErrorMessages on SAVE_SUBMISSION_FORM_ERROR', () => {
447447
spyOn(component, 'announceErrorMessages');
448-
actions$.next(new SaveSubmissionFormErrorAction('1234'));
448+
actions$.next(new SaveSubmissionFormErrorAction('1234', 0, ''));
449449
expect(component.announceErrorMessages).toHaveBeenCalled();
450450
});
451451

@@ -457,7 +457,7 @@ describe('DsDynamicFormControlContainerComponent test suite', () => {
457457

458458
it('should call announceErrorMessages on SAVE_SUBMISSION_SECTION_FORM_ERROR', () => {
459459
spyOn(component, 'announceErrorMessages');
460-
actions$.next(new SaveSubmissionSectionFormErrorAction('1234'));
460+
actions$.next(new SaveSubmissionSectionFormErrorAction('1234', 0, ''));
461461
expect(component.announceErrorMessages).toHaveBeenCalled();
462462
});
463463
});

src/app/shared/form/builder/parsers/date-field-parser.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe('DateFieldParser test suite', () => {
6868
});
6969

7070
it('should skip setting the placeholder', () => {
71-
const parser = new DateFieldParser(submissionId, field, initFormValues, parserOptions, translateService);
71+
const parser = new DateFieldParser(submissionId, field, initFormValues, parserOptions, null, translateService);
7272
const fieldModel = parser.parse();
7373

7474
expect(fieldModel.placeholder).toBeNull();

0 commit comments

Comments
 (0)