Skip to content

Commit

Permalink
Merge 69ab3e2 into bf54a5a
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmonkey committed Feb 15, 2019
2 parents bf54a5a + 69ab3e2 commit 8ac2b88
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
@@ -1,9 +1,9 @@
language: node_js
node_js:
- '0.10'
- '8'

branches:
only:
- master

script: make test-coveralls
script: make test-coveralls
2 changes: 1 addition & 1 deletion lib/util/batch.js
Expand Up @@ -327,7 +327,7 @@ function containsBatch(parentBatch, batchToFind) {
if (parentBatch === batchToFind) {
return true;
}
return _.any(parentBatch.context.queries, function (query) {
return _.some(parentBatch.context.queries, function (query) {
if (isBatch(query)) {
return containsBatch(query, batchToFind);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -21,7 +21,7 @@
"async": "^1.2.1",
"cassandra-driver": "^3.0.2",
"isstream": "^0.1.2",
"lodash": "^3.9.3",
"lodash": "^4.17.11",
"q": "^1.4.1",
"read-only-stream": "^1.1.1",
"retry": "^0.6.1",
Expand Down
6 changes: 3 additions & 3 deletions test/unit/driver-factory.tests.js
Expand Up @@ -37,9 +37,9 @@ describe('lib/driver-factory.js', function () {
});

it('exposes DataStax types and consistencies', function () {
expect(DriverFactory.consistencies).to.be.an.object;
expect(DriverFactory.dataTypes).to.be.an.object;
expect(DriverFactory.valueTypes).to.be.an.object;
expect(DriverFactory.consistencies).to.be.an('object');
expect(DriverFactory.dataTypes).to.be.an('object');
expect(DriverFactory.valueTypes).to.be.an('object');
});

function testInstance(driver, versionPath, cqlVersion, expectedDriver, expectedVersion, expectedProtocol, expectedInstance) {
Expand Down
3 changes: 2 additions & 1 deletion test/unit/driver.basic.tests.js
Expand Up @@ -308,7 +308,8 @@ describe('lib/driver.js', function () {
expect(driver.execCql.args[0][0]).to.equal(cql);
expect(driver.execCql.args[0][1]).to.deep.equal(params);
expect(driver.execCql.args[0][2]).to.deep.equal(options);
expect(driver.execCql.args[0][3]).to.be.a.function;
expect(driver.execCql.args[0][3]).to.be.a('string');
expect(driver.execCql.args[0][4]).to.be.a('function');
expect(driver.execCqlStream.called).to.be.false;
});

Expand Down

0 comments on commit 8ac2b88

Please sign in to comment.