From bc230a844029e5771f02d6a8b552bd26977d638a Mon Sep 17 00:00:00 2001 From: Jatin_Chugh Date: Wed, 7 Jun 2023 10:47:20 +0530 Subject: [PATCH] unit test case modifications as per calender changes --- .../lib/content-node-share/content-node-share.dialog.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/content-services/src/lib/content-node-share/content-node-share.dialog.spec.ts b/lib/content-services/src/lib/content-node-share/content-node-share.dialog.spec.ts index 9809265967..aa17896060 100644 --- a/lib/content-services/src/lib/content-node-share/content-node-share.dialog.spec.ts +++ b/lib/content-services/src/lib/content-node-share/content-node-share.dialog.spec.ts @@ -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);