diff --git a/lib/core/src/lib/form/components/form-renderer.component.spec.ts b/lib/core/src/lib/form/components/form-renderer.component.spec.ts index ff9dd6e71d..40b18a5134 100644 --- a/lib/core/src/lib/form/components/form-renderer.component.spec.ts +++ b/lib/core/src/lib/form/components/form-renderer.component.spec.ts @@ -113,7 +113,7 @@ describe('Form Renderer Component', () => { fixture.destroy(); }); - describe('Display Date Widget ', async() => { + describe('Display Date Widget ', async () => { it('Should be able to see a widget when the visibility condition refers to another fields with specific date', async () => { formRendererComponent.formDefinition = formService.parseForm(formDateVisibility.formRepresentation.formDefinition); fixture.detectChanges(); @@ -123,7 +123,7 @@ describe('Form Renderer Component', () => { let displayTextElementContainer: HTMLInputElement = fixture.nativeElement.querySelector('#field-Text0pqd1u-container'); expectElementToBeHidden(displayTextElementContainer); - let formattedDate = format(new Date('2019-11-19'), 'd-M-yyyy'); + const formattedDate = format(new Date('2019-11-19'), 'd-M-yyyy'); typeIntoDate(inputDateTestOne, { srcElement: { value: formattedDate } }); fixture.detectChanges(); @@ -142,7 +142,7 @@ describe('Form Renderer Component', () => { let displayTextElementContainer: HTMLDivElement = fixture.nativeElement.querySelector('#field-Text0uyqd3-container'); expectElementToBeVisible(displayTextElementContainer); - let formattedDate = format(new Date('2019-11-19'), 'd-M-yyyy'); + const formattedDate = format(new Date('2019-11-19'), 'd-M-yyyy'); typeIntoDate(inputDateTestOne, { srcElement: { value: formattedDate } }); fixture.detectChanges(); diff --git a/lib/core/src/lib/pipes/adf-date.pipe.spec.ts b/lib/core/src/lib/pipes/adf-date.pipe.spec.ts index 62126011c4..0617e5c0db 100644 --- a/lib/core/src/lib/pipes/adf-date.pipe.spec.ts +++ b/lib/core/src/lib/pipes/adf-date.pipe.spec.ts @@ -26,7 +26,7 @@ describe('DatePipe', () => { beforeEach(() => { TestBed.configureTestingModule({ imports: [TranslateModule.forRoot(), CoreTestingModule], - providers: [ADFDatePipe], + providers: [ADFDatePipe] }); datePipe = new ADFDatePipe();