[AAE-30877] - fixed the unit test tasks

This commit is contained in:
VitoAlbano
2025-03-13 15:26:52 +00:00
committed by Wojciech Duda
parent 33c58d7756
commit dec21b387d
2 changed files with 3 additions and 3 deletions

View File

@@ -388,7 +388,7 @@ describe('Test PdfViewer - Zoom customization', () => {
fixtureUrlTestComponent.detectChanges();
await fixtureUrlTestComponent.whenStable();
await firstValueFrom(componentUrlTestComponent.pdfViewerComponent.rendered);
}, 55000);
});
it('should use the custom zoom if it is present in the app.config', fakeAsync(() => {
spyOn(componentUrlTestComponent.pdfViewerComponent.pdfViewer, 'forceRendering').and.callFake(() => {});
@@ -408,7 +408,7 @@ describe('Test PdfViewer - Zoom customization', () => {
fixtureUrlTestComponent.detectChanges();
await fixtureUrlTestComponent.whenStable();
await firstValueFrom(componentUrlTestComponent.pdfViewerComponent.rendered);
}, 55000);
});
it('should use the minimum scale zoom if the value given in app.config is less than the minimum allowed scale', async () => {
spyOn(componentUrlTestComponent.pdfViewerComponent.pdfViewer, 'forceRendering').and.callFake(() => {});