Skip to content

Commit

Permalink
Rename getPathFind to getPaths
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Clark committed Jul 9, 2015
1 parent 935a463 commit 046d397
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/api/index.js
Expand Up @@ -11,7 +11,7 @@ const getTransaction = require('./ledger/transaction');
const getTransactions = require('./ledger/transactions');
const getTrustlines = require('./ledger/trustlines');
const getBalances = require('./ledger/balances');
const getPathFind = require('./ledger/pathfind');
const getPaths = require('./ledger/pathfind');
const getOrders = require('./ledger/orders');
const getOrderbook = require('./ledger/orderbook');
const getSettings = require('./ledger/settings');
Expand Down Expand Up @@ -41,7 +41,7 @@ RippleAPI.prototype = {
getTransactions,
getTrustlines,
getBalances,
getPathFind,
getPaths,
getOrders,
getOrderbook,
getSettings,
Expand Down
4 changes: 2 additions & 2 deletions src/api/ledger/pathfind.js
Expand Up @@ -92,7 +92,7 @@ function formatResponse(pathfind, paths) {
}
}

function getPathFind(pathfind, callback) {
function getPaths(pathfind, callback) {
validate.pathfind(pathfind);

const address = pathfind.source.address;
Expand All @@ -102,4 +102,4 @@ function getPathFind(pathfind, callback) {
], composeAsync(_.partial(formatResponse, pathfind), callback));
}

module.exports = utils.wrapCatch(getPathFind);
module.exports = utils.wrapCatch(getPaths);
8 changes: 4 additions & 4 deletions test/api-test.js
Expand Up @@ -30,7 +30,7 @@ const getSettingsResponse = require('./fixtures/get-settings-response');
const getOrdersResponse = require('./fixtures/get-orders-response');
const getOrderbookResponse = require('./fixtures/get-orderbook-response');
const getServerInfoResponse = require('./fixtures/get-server-info-response');
const getPathFindResponse = require('./fixtures/get-pathfind-response');
const getPathsResponse = require('./fixtures/get-paths-response');
const address = addresses.ACCOUNT;

function checkResult(expected, done, error, response) {
Expand Down Expand Up @@ -173,7 +173,7 @@ describe('RippleAPI', function() {
});
});

it('getPathFind', function(done) {
it('getPaths', function(done) {
const pathfind = {
source: {
address: address
Expand All @@ -187,8 +187,8 @@ describe('RippleAPI', function() {
}
}
};
this.api.getPathFind(pathfind,
_.partial(checkResult, getPathFindResponse, done));
this.api.getPaths(pathfind,
_.partial(checkResult, getPathsResponse, done));
});

it('getLedgerVersion', function() {
Expand Down
File renamed without changes.

0 comments on commit 046d397

Please sign in to comment.