mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ACA-3853] fix use of more recent pdf viewer versions (#6007)
* fix use of more recent pdf viewer versions * fix unit test with thte new promise
This commit is contained in:
@@ -35,7 +35,7 @@ describe('PdfThumbComponent', () => {
|
||||
id: 'pageId',
|
||||
getPage: jasmine.createSpy('getPage').and.returnValue(Promise.resolve({
|
||||
getViewport: () => ({ height: width, width: height }),
|
||||
render: jasmine.createSpy('render').and.returnValue(Promise.resolve())
|
||||
render: jasmine.createSpy('render').and.returnValue({ promise: Promise.resolve() })
|
||||
})),
|
||||
|
||||
getWidth: jasmine.createSpy('getWidth').and.returnValue(width),
|
||||
|
Reference in New Issue
Block a user