Update QueryBuilder

This commit is contained in:
Timothy Warren 2016-11-14 20:24:33 -05:00
parent 0ee092abd9
commit b13ad2a23d
2 changed files with 5 additions and 6 deletions

View File

@ -20,12 +20,11 @@ class QueryBuilder extends QueryBuilderBase {
* Run an arbitrary sql query. Run as a prepared statement.
*
* @param {string} sql - The sql to execute
* @param {array} [params] - The query parameters
* @param {function} [callback] - Optional callback
* @return {Promise} - Returns a promise if no callback is supplied
* @param {Array} [params] - The query parameters
* @return {Promise} - Promise with result of query
*/
query (string, params) {
return this.adapter.execute(string, params);
query (sql, params) {
return this.adapter.execute(sql, params);
}
/**

View File

@ -15,7 +15,7 @@ module.exports = function promiseTestRunner (qb) {
suite(suiteName, () => {
let currentSuite = tests[suiteName];
Object.keys(currentSuite).forEach(testDesc => {
test(`Promise - ${testDesc}`, () => {
test(testDesc, () => {
const methodObj = currentSuite[testDesc];
const methodNames = Object.keys(methodObj);
let results = [];