diff options
Diffstat (limited to 'apps/files_sharing/tests/js/sharedfilelistSpec.js')
-rw-r--r-- | apps/files_sharing/tests/js/sharedfilelistSpec.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/js/sharedfilelistSpec.js b/apps/files_sharing/tests/js/sharedfilelistSpec.js index dc6931af6e8..d85c0ab6dca 100644 --- a/apps/files_sharing/tests/js/sharedfilelistSpec.js +++ b/apps/files_sharing/tests/js/sharedfilelistSpec.js @@ -50,7 +50,6 @@ describe('OCA.Sharing.FileList tests', function() { // the sharing code oldFileListPrototype = _.extend({}, OCA.Files.FileList.prototype); fileActions = new OCA.Files.FileActions(); - OCA.Sharing.Util.initialize(fileActions); }); afterEach(function() { OCA.Files.FileList.prototype = oldFileListPrototype; @@ -72,6 +71,7 @@ describe('OCA.Sharing.FileList tests', function() { sharedWithUser: true } ); + OCA.Sharing.Util.attach(fileList); fileList.reload(); @@ -193,6 +193,7 @@ describe('OCA.Sharing.FileList tests', function() { sharedWithUser: false } ); + OCA.Sharing.Util.attach(fileList); fileList.reload(); @@ -433,6 +434,7 @@ describe('OCA.Sharing.FileList tests', function() { linksOnly: true } ); + OCA.Sharing.Util.attach(fileList); fileList.reload(); @@ -580,6 +582,7 @@ describe('OCA.Sharing.FileList tests', function() { fileActions: fileActions } ); + OCA.Sharing.Util.attach(fileList); }); it('external storage root folder', function () { |