devtools/data/cwmock.js
author Julien Cristau <julien.cristau@logilab.fr>
Tue, 01 Apr 2014 15:53:21 +0200
changeset 9609 e7d38148799e
parent 5950 f84dba9b8eca
permissions -rw-r--r--
[repository] operations get a connection instead of a session Left extid2eid unchanged because that function scares the shit out of me.

/*
 * 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;
}