diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-10-14 19:19:16 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-10-14 19:19:16 +0200 |
commit | 5e4eda1ae0ea0ee7e690fee1017dae873a1a7512 (patch) | |
tree | 82da6da8c61c74922451ff23e93f8b398cb1cbc6 /apps/files_sharing/tests/js | |
parent | b076e3a17da1bb3f418af366f78e397fe3cc9b79 (diff) | |
download | nextcloud-server-5e4eda1ae0ea0ee7e690fee1017dae873a1a7512.tar.gz nextcloud-server-5e4eda1ae0ea0ee7e690fee1017dae873a1a7512.zip |
Remove deprecated legacy file actions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/tests/js')
-rw-r--r-- | apps/files_sharing/tests/js/appSpec.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/apps/files_sharing/tests/js/appSpec.js b/apps/files_sharing/tests/js/appSpec.js index 133bd44f750..f2871f4ab21 100644 --- a/apps/files_sharing/tests/js/appSpec.js +++ b/apps/files_sharing/tests/js/appSpec.js @@ -57,16 +57,6 @@ describe('OCA.Sharing.App tests', function() { }); }); describe('file actions', function() { - var oldLegacyFileActions; - - beforeEach(function() { - oldLegacyFileActions = window.FileActions; - window.FileActions = new OCA.Files.FileActions(); - }); - - afterEach(function() { - window.FileActions = oldLegacyFileActions; - }); it('provides default file actions', function() { _.each([fileListIn, fileListOut], function(fileList) { var fileActions = fileList.fileActions; @@ -95,22 +85,6 @@ describe('OCA.Sharing.App tests', function() { expect(fileListIn.fileActions.actions.all.RegularTest).toBeDefined(); }); - it('does not provide legacy file actions', function() { - var actionStub = sinon.stub(); - // legacy file action - window.FileActions.register( - 'all', - 'LegacyTest', - OC.PERMISSION_READ, - OC.imagePath('core', 'actions/shared'), - actionStub - ); - - App._inFileList = null; - fileListIn = App.initSharingIn($('#app-content-sharingin')); - - expect(fileListIn.fileActions.actions.all.LegacyTest).not.toBeDefined(); - }); it('redirects to files app when opening a directory', function() { var oldList = OCA.Files.App.fileList; // dummy new list to make sure it exists |