Skip to content

Commit 482c680

Browse files
author
Julien Veyssier
committed
fix jsunit tests for comments
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
1 parent 654fdb2 commit 482c680

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/comments/src/filesplugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
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

apps/comments/tests/js/filespluginSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)