Skip to content

Commit

Permalink
fix jsunit tests for comments
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
Julien Veyssier committed Jul 27, 2021
1 parent 654fdb2 commit 482c680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/comments/src/filesplugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
context.$file.find('.action-comment').tooltip('hide')
// open sidebar in comments section
OCA.Files.Sidebar.setActiveTab('comments')
OCA.Files.Sidebar.open('/' + fileName)
OCA.Files.Sidebar.open(context.dir + '/' + fileName)
},
})

Expand Down
2 changes: 1 addition & 1 deletion apps/comments/tests/js/filespluginSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('OCA.Comments.FilesPlugin tests', function() {
expect(sidebarTabStub.calledOnce).toEqual(true);
expect(sidebarTabStub.lastCall.args[0]).toEqual('comments');
expect(sidebarStub.calledOnce).toEqual(true);
expect(sidebarStub.lastCall.args[0]).toEqual('/One.txt');
expect(sidebarStub.lastCall.args[0]).toEqual('/subdir/One.txt');
});
});
describe('elementToFile', function() {
Expand Down

0 comments on commit 482c680

Please sign in to comment.