mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
unit test case modifications as per calender changes
This commit is contained in:
@@ -305,7 +305,7 @@ describe('ShareDialogComponent', () => {
|
|||||||
|
|
||||||
it('should update node with input date and end of day time when type is `date`', fakeAsync(() => {
|
it('should update node with input date and end of day time when type is `date`', fakeAsync(() => {
|
||||||
const dateTimePickerType = 'date';
|
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);
|
spyOn(appConfigService, 'get').and.callFake(() => dateTimePickerType as any);
|
||||||
|
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
@@ -334,6 +334,7 @@ describe('ShareDialogComponent', () => {
|
|||||||
fixture.nativeElement.querySelector('mat-slide-toggle[data-automation-id="adf-expire-toggle"] label')
|
fixture.nativeElement.querySelector('mat-slide-toggle[data-automation-id="adf-expire-toggle"] label')
|
||||||
.dispatchEvent(new MouseEvent('click'));
|
.dispatchEvent(new MouseEvent('click'));
|
||||||
|
|
||||||
|
fixture.componentInstance.type = 'datetime';
|
||||||
fixture.componentInstance.time.setValue(date);
|
fixture.componentInstance.time.setValue(date);
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
tick(100);
|
tick(100);
|
||||||
|
|||||||
Reference in New Issue
Block a user