aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/js/fileactionsSpec.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-06-23 15:53:23 +0200
committerVincent Petry <pvince81@owncloud.com>2014-06-23 15:53:23 +0200
commit6850d0c6d72e2bb1837e2ee76a4da3e2b8e6509f (patch)
tree79871e8abde4d6e5a0873079f6cb9b960e5e0f7e /apps/files/tests/js/fileactionsSpec.js
parent8c8209828126a55b9bf775e00cbc14d7ef7db5ae (diff)
parentd3d0035a9a81ea5d3e314141069f4914e3c6ce54 (diff)
downloadnextcloud-server-6850d0c6d72e2bb1837e2ee76a4da3e2b8e6509f.tar.gz
nextcloud-server-6850d0c6d72e2bb1837e2ee76a4da3e2b8e6509f.zip
Merge pull request #8931 from owncloud/filelist-usepathforaction
[master] Use actual file path on rename/delete
Diffstat (limited to 'apps/files/tests/js/fileactionsSpec.js')
-rw-r--r--apps/files/tests/js/fileactionsSpec.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/tests/js/fileactionsSpec.js b/apps/files/tests/js/fileactionsSpec.js
index 490594a1773..355761afa01 100644
--- a/apps/files/tests/js/fileactionsSpec.js
+++ b/apps/files/tests/js/fileactionsSpec.js
@@ -140,6 +140,7 @@ describe('OCA.Files.FileActions tests', function() {
id: 18,
type: 'file',
name: 'testName.txt',
+ path: '/somepath/dir',
mimetype: 'text/plain',
size: '1234',
etag: 'a01234c',
@@ -151,6 +152,8 @@ describe('OCA.Files.FileActions tests', function() {
$tr.find('.action.delete').click();
expect(deleteStub.calledOnce).toEqual(true);
+ expect(deleteStub.getCall(0).args[0]).toEqual('testName.txt');
+ expect(deleteStub.getCall(0).args[1]).toEqual('/somepath/dir');
deleteStub.restore();
});
it('passes context to action handler', function() {