summaryrefslogtreecommitdiffstats
path: root/js-old/tests/unit/stubs/OC.js
diff options
context:
space:
mode:
Diffstat (limited to 'js-old/tests/unit/stubs/OC.js')
-rw-r--r--js-old/tests/unit/stubs/OC.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js-old/tests/unit/stubs/OC.js b/js-old/tests/unit/stubs/OC.js
new file mode 100644
index 000000000..a050c2f13
--- /dev/null
+++ b/js-old/tests/unit/stubs/OC.js
@@ -0,0 +1,16 @@
+/**
+ * Nextcloud - News
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @copyright Bernhard Posselt 2012, 2014
+ */
+window.OC = {
+ generateUrl: function (url) {
+ 'use strict';
+
+ return '/base' + url;
+ }
+}; \ No newline at end of file