[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();
});
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();
+1 -1
View File
@@ -26,7 +26,7 @@ describe('DatePipe', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [TranslateModule.forRoot(), CoreTestingModule],
providers: [ADFDatePipe],
providers: [ADFDatePipe]
});
datePipe = new ADFDatePipe();