diff --git a/lib/tree.js b/lib/tree.js index 1be687075..43af49656 100644 --- a/lib/tree.js +++ b/lib/tree.js @@ -34,7 +34,7 @@ Tree.prototype.builder = function() { * @async * @param {Tree} tree to diff against * @param {Function} callback - * @return {DiffList} + * @return {Diff} */ Tree.prototype.diff = function(tree, callback) { return this.diffWithOptions(tree, null, callback); @@ -46,7 +46,7 @@ Tree.prototype.diff = function(tree, callback) { * @param {Tree} tree to diff against * @param {Object} options * @param {Function} callback - * @return {DiffList} + * @return {Diff} */ Tree.prototype.diffWithOptions = function(tree, options, callback) { return Diff.treeToTree(this.repo, tree, this, options).then(function(diff) { diff --git a/test/tests/diff.js b/test/tests/diff.js index 7eb243fc9..31aff3f64 100644 --- a/test/tests/diff.js +++ b/test/tests/diff.js @@ -112,7 +112,7 @@ describe("Diff", function() { }); }); - it("can walk a DiffList", function() { + it("can walk an Array", function() { return this.diff[0].patches() .then(function(patches) { var patch = patches[0];