diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-10-20 14:24:01 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-10-20 18:02:45 +0200 |
commit | 6cd7549509f534efbdb2736a15f145dacd0223f8 (patch) | |
tree | 13e092fa3d90918bce0f6a81ba7368165e3b7888 /apps/comments/tests | |
parent | 3e1916080af3ec2bc2fb7fd64f127cbd0c9b8a76 (diff) | |
download | nextcloud-server-6cd7549509f534efbdb2736a15f145dacd0223f8.tar.gz nextcloud-server-6cd7549509f534efbdb2736a15f145dacd0223f8.zip |
Bump @nextcloud/vue to 3.0.0
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/comments/tests')
-rw-r--r-- | apps/comments/tests/js/filespluginSpec.js | 8 |
1 files changed, 5 insertions, 3 deletions
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() { |