summaryrefslogtreecommitdiffstats
path: root/js/tests/unit/stubs
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-15 12:26:42 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-15 12:26:42 +0200
commitd6625bc44524500e11c9072c6ba294112cd52d43 (patch)
treecd1e93b6b21434d6aba7725821d811d312d687f7 /js/tests/unit/stubs
parent866f17fe43f841691a8858d671962d623369d3b3 (diff)
fix protractor tests
Diffstat (limited to 'js/tests/unit/stubs')
-rw-r--r--js/tests/unit/stubs/app.js10
-rw-r--r--js/tests/unit/stubs/oc.js16
2 files changed, 26 insertions, 0 deletions
diff --git a/js/tests/unit/stubs/app.js b/js/tests/unit/stubs/app.js
new file mode 100644
index 000000000..54135ec10
--- /dev/null
+++ b/js/tests/unit/stubs/app.js
@@ -0,0 +1,10 @@
+/**
+ * ownCloud - 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
+ */
+var app = angular.module('News', ['ngRoute', 'ngSanitize', 'ngMock']); \ No newline at end of file
diff --git a/js/tests/unit/stubs/oc.js b/js/tests/unit/stubs/oc.js
new file mode 100644
index 000000000..07ac96491
--- /dev/null
+++ b/js/tests/unit/stubs/oc.js
@@ -0,0 +1,16 @@
+/**
+ * ownCloud - 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
+ */
+var OC = {
+ generateUrl: function () {
+ 'use strict';
+
+ return '';
+ }
+}; \ No newline at end of file