Skip to content
This repository was archived by the owner on Jan 20, 2020. It is now read-only.

Commit eba6782

Browse files
convert to lodash
1 parent 66191d8 commit eba6782

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"license": "MIT",
1919
"dependencies": {
20+
"lodash": "^4.1.0",
2021
"nan": "^2.1.0"
2122
},
2223
"devDependencies": {

specs/raw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var _ = require('underscore');
1+
var _ = require('lodash');
22
var expect = require('chai').expect;
33
var Promise = require('bluebird');
44
var bluebird_retry = require('bluebird-retry');
@@ -29,7 +29,7 @@ function get_partition_count(handle, topic_name) {
2929
});
3030
})
3131
.then(function(metadata) {
32-
var topic = _.findWhere(metadata.topics, {topic: topic_name});
32+
var topic = _.find(metadata.topics, {topic: topic_name});
3333
expect(topic).to.exist();
3434
expect(topic.partitions).to.exist();
3535
expect(topic.partitions.length).gt(0);

0 commit comments

Comments
 (0)