From f7a2b5e7a948f9bd8e5fcf5b642afad3fa84ae5d Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 19 May 2015 17:40:36 +0200 Subject: Added unit tests for download URL in public sharing page --- apps/files_sharing/js/public.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/files_sharing/js/public.js') diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 73b76b6bafc..c5934a4f609 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -277,6 +277,11 @@ OCA.Sharing.PublicApp = { }; $(document).ready(function () { + // FIXME: replace with OC.Plugins.register() + if (window.TESTING) { + return; + } + var App = OCA.Sharing.PublicApp; // defer app init, to give a chance to plugins to register file actions _.defer(function () { -- cgit v1.2.3