cubicweb/devtools/data/cwmock.js
changeset 11057 0b59724cb3f2
parent 5950 f84dba9b8eca
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb/devtools/data/cwmock.js	Sat Jan 16 13:48:51 2016 +0100
@@ -0,0 +1,11 @@
+/*
+ * cubicweb js mock for unit tests
+ * This module defines variables and functions used in quite a few places
+ * in cw js framework that can't be used or guessed without a real CW server
+ */
+
+var pageid = 'my-page-id';
+
+function _(message) {
+    return message;
+}