File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 103103 context . $file . find ( '.action-comment' ) . tooltip ( 'hide' )
104104 // open sidebar in comments section
105105 OCA . Files . Sidebar . setActiveTab ( 'comments' )
106- OCA . Files . Sidebar . open ( '/' + fileName )
106+ OCA . Files . Sidebar . open ( context . dir + '/' + fileName )
107107 } ,
108108 } )
109109
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ describe('OCA.Comments.FilesPlugin tests', function() {
7676 expect ( sidebarTabStub . calledOnce ) . toEqual ( true ) ;
7777 expect ( sidebarTabStub . lastCall . args [ 0 ] ) . toEqual ( 'comments' ) ;
7878 expect ( sidebarStub . calledOnce ) . toEqual ( true ) ;
79- expect ( sidebarStub . lastCall . args [ 0 ] ) . toEqual ( '/One.txt' ) ;
79+ expect ( sidebarStub . lastCall . args [ 0 ] ) . toEqual ( '/subdir/ One.txt' ) ;
8080 } ) ;
8181 } ) ;
8282 describe ( 'elementToFile' , function ( ) {
You can’t perform that action at this time.
0 commit comments