mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1066] Improved files preview (#173)
* preview files child route * fix previewing root files (personal)
This commit is contained in:
@@ -122,12 +122,12 @@ describe('RecentFiles Routed Component', () => {
|
||||
|
||||
it('open preview if node is file', () => {
|
||||
spyOn(router, 'navigate').and.stub();
|
||||
const node: any = { isFile: true };
|
||||
const node: any = { id: 'node-id', isFile: true };
|
||||
|
||||
component.onNodeDoubleClick(node);
|
||||
fixture.detectChanges();
|
||||
|
||||
expect(router.navigate).toHaveBeenCalledWith(['/preview', node.id]);
|
||||
expect(router.navigate['calls'].argsFor(0)[0]).toEqual(['./preview', node.id]);
|
||||
});
|
||||
|
||||
it('does not open preview if node is folder', () => {
|
||||
|
Reference in New Issue
Block a user