unit test case modifications as per calender changes

This commit is contained in:
Jatin_Chugh
2023-06-07 10:47:20 +05:30
parent ed593b7b49
commit bc230a8440
@@ -305,7 +305,7 @@ describe('ShareDialogComponent', () => {
it('should update node with input date and end of day time when type is `date`', fakeAsync(() => {
const dateTimePickerType = 'date';
const date = new Date('2525-01-01 13:00:00');
const date = new Date('2525-01-01');
spyOn(appConfigService, 'get').and.callFake(() => dateTimePickerType as any);
fixture.detectChanges();
@@ -334,6 +334,7 @@ describe('ShareDialogComponent', () => {
fixture.nativeElement.querySelector('mat-slide-toggle[data-automation-id="adf-expire-toggle"] label')
.dispatchEvent(new MouseEvent('click'));
fixture.componentInstance.type = 'datetime';
fixture.componentInstance.time.setValue(date);
fixture.detectChanges();
tick(100);