Skip to content

Commit 23d6881

Browse files
committed
Upgrade test packages
1 parent 15a2b73 commit 23d6881

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
language: node_js
22
node_js:
3+
- '6'
4+
- '4'
35
- '0.12'
46
- '0.11'
57
- '0.10'

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ function _attachExecMethod(qb) {
123123
*/
124124
qb.exec = function (options, cb) {
125125

126-
var _options = _.isFunction(options) ? {} : options
126+
var _options = typeof options !== "undefined" && _.isFunction(options) ? {} : options
127127
, _cb;
128128

129-
if (!_.has(options, "prepare")) {
130-
options.prepare = qb._execPrepare;
129+
if (!_.has(_options, "prepare")) {
130+
_options.prepare = qb._execPrepare;
131131
}
132132

133133
if (_.isFunction(options)) {

package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"chai": "^2.2.0",
3030
"grunt": "^0.4.5",
3131
"grunt-contrib-jshint": "^0.11.1",
32-
"grunt-mocha-test": "^0.12.7",
33-
"mocha": "^2.2.1",
32+
"grunt-mocha-test": "^0.13.2",
33+
"mocha": "^3.1.2",
3434
"uuid": "^2.0.1"
3535
},
3636
"keywords": [
@@ -40,5 +40,8 @@
4040
"cassandra",
4141
"datastax",
4242
"driver"
43-
]
43+
],
44+
"engines": {
45+
"node": ">=0.10"
46+
}
4447
}

0 commit comments

Comments
 (0)