cubicweb/devtools/data/cwmock.js
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 30 Jan 2017 17:17:17 +0100
branch3.24
changeset 11937 7d3ee5a516fa
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[migration] Fix crash on 3.24 migration Some sql using a column droped the line above crash migration of cw < 3.24.

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