From 6cd7549509f534efbdb2736a15f145dacd0223f8 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Tue, 20 Oct 2020 14:24:01 +0200 Subject: Bump @nextcloud/vue to 3.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) Signed-off-by: npmbuildbot[bot] --- apps/comments/tests/js/filespluginSpec.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apps/comments/tests/js/filespluginSpec.js') diff --git a/apps/comments/tests/js/filespluginSpec.js b/apps/comments/tests/js/filespluginSpec.js index 06131698032..e2d97da5f96 100644 --- a/apps/comments/tests/js/filespluginSpec.js +++ b/apps/comments/tests/js/filespluginSpec.js @@ -65,16 +65,18 @@ describe('OCA.Comments.FilesPlugin tests', function() { expect($tr.attr('data-comments-unread')).toEqual('3'); }); it('clicking icon opens sidebar', function() { - var sidebarStub = sinon.stub(fileList, 'showDetailsView'); + var sidebarTabStub = sinon.stub(OCA.Files.Sidebar, 'setActiveTab'); + var sidebarStub = sinon.stub(OCA.Files.Sidebar, 'open'); var $action, $tr; fileList.setFiles(testFiles); $tr = fileList.findFileEl('One.txt'); $action = $tr.find('.action-comment'); $action.click(); + 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[1]).toEqual('comments'); + expect(sidebarStub.lastCall.args[0]).toEqual('/One.txt'); }); }); describe('elementToFile', function() { -- cgit v1.2.3