[ACS-5640] fixed linting issues

This commit is contained in:
SheenaMalhotra182
2023-09-20 15:44:58 +05:30
parent 70cf1ead3c
commit 493cf5b2af
2 changed files with 4 additions and 4 deletions
@@ -113,7 +113,7 @@ describe('Form Renderer Component', () => {
fixture.destroy(); 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 () => { 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); formRendererComponent.formDefinition = formService.parseForm(formDateVisibility.formRepresentation.formDefinition);
fixture.detectChanges(); fixture.detectChanges();
@@ -123,7 +123,7 @@ describe('Form Renderer Component', () => {
let displayTextElementContainer: HTMLInputElement = fixture.nativeElement.querySelector('#field-Text0pqd1u-container'); let displayTextElementContainer: HTMLInputElement = fixture.nativeElement.querySelector('#field-Text0pqd1u-container');
expectElementToBeHidden(displayTextElementContainer); 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 } }); typeIntoDate(inputDateTestOne, { srcElement: { value: formattedDate } });
fixture.detectChanges(); fixture.detectChanges();
@@ -142,7 +142,7 @@ describe('Form Renderer Component', () => {
let displayTextElementContainer: HTMLDivElement = fixture.nativeElement.querySelector('#field-Text0uyqd3-container'); let displayTextElementContainer: HTMLDivElement = fixture.nativeElement.querySelector('#field-Text0uyqd3-container');
expectElementToBeVisible(displayTextElementContainer); 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 } }); typeIntoDate(inputDateTestOne, { srcElement: { value: formattedDate } });
fixture.detectChanges(); fixture.detectChanges();
+1 -1
View File
@@ -26,7 +26,7 @@ describe('DatePipe', () => {
beforeEach(() => { beforeEach(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
imports: [TranslateModule.forRoot(), CoreTestingModule], imports: [TranslateModule.forRoot(), CoreTestingModule],
providers: [ADFDatePipe], providers: [ADFDatePipe]
}); });
datePipe = new ADFDatePipe(); datePipe = new ADFDatePipe();