Add knex AliasesDB

This commit is contained in:
Calvin Montgomery 2017-06-28 22:58:40 -07:00
parent 76e0d1b7ec
commit 7ebf3c18ab
4 changed files with 254 additions and 1 deletions

View file

@ -14,7 +14,17 @@ function MockTx() {
}
['insert', 'update', 'select', 'del', 'where', 'table'].forEach(method => {
[
'del',
'distinct',
'insert',
'limit',
'orderBy',
'select',
'table',
'update',
'where',
].forEach(method => {
MockTx.prototype[method] = function () {
return Promise.reject(new Error(`No stub defined for method "${method}"`));
};