Add knex AliasesDB
This commit is contained in:
parent
76e0d1b7ec
commit
7ebf3c18ab
4 changed files with 254 additions and 1 deletions
|
|
@ -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}"`));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue