summaryrefslogtreecommitdiffstats
path: root/apps/files/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-03-25 09:27:55 +0100
committerVincent Petry <pvince81@owncloud.com>2015-03-25 09:27:55 +0100
commitb3de3d72452b4eb91b4a9a4c96ccf51d914246ea (patch)
treeb0d54a907fefdf24fdf15e3240f971bcfc42d8ec /apps/files/tests
parent2b8ef3aca9dafa8852011fd8ee7fc780e2256243 (diff)
downloadnextcloud-server-b3de3d72452b4eb91b4a9a4c96ccf51d914246ea.tar.gz
nextcloud-server-b3de3d72452b4eb91b4a9a4c96ccf51d914246ea.zip
Fix breadcrumb click JS unit test
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/js/filelistSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js
index d44365f6351..bd3620e4b30 100644
--- a/apps/files/tests/js/filelistSpec.js
+++ b/apps/files/tests/js/filelistSpec.js
@@ -1309,7 +1309,7 @@ describe('OCA.Files.FileList tests', function() {
fileList.changeDirectory('/subdir/two/three with space/four/five');
fakeServer.respond();
var changeDirStub = sinon.stub(fileList, 'changeDirectory');
- fileList.breadcrumb.$el.find('.crumb:eq(0)').click();
+ fileList.breadcrumb.$el.find('.crumb:eq(0)').trigger({type: 'click', which: 1});
expect(changeDirStub.calledOnce).toEqual(true);
expect(changeDirStub.getCall(0).args[0]).toEqual('/');
@@ -1319,7 +1319,7 @@ describe('OCA.Files.FileList tests', function() {
fileList.changeDirectory('/subdir/two/three with space/four/five');
fakeServer.respond();
var changeDirStub = sinon.stub(fileList, 'changeDirectory');
- fileList.breadcrumb.$el.find('.crumb:eq(3)').click();
+ fileList.breadcrumb.$el.find('.crumb:eq(3)').trigger({type: 'click', which: 1});
expect(changeDirStub.calledOnce).toEqual(true);
expect(changeDirStub.getCall(0).args[0]).toEqual('/subdir/two/three with space');