cubicweb/devtools/data/cwmock.js
author Alexandre Richardson <alexandre.richardson@logilab.fr>
Tue, 12 Jan 2016 17:36:28 +0100
changeset 11168 dfa5f8879e8f
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[rset] refactoring of _build_entity method define a method for entity instantiation and storage in cache (related to #9942503)

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