diff -r 058bb3dc685f -r 0b59724cb3f2 cubicweb/devtools/data/cwmock.js --- /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; +}