Skip to content

Commit ae87fec

Browse files
committed
Documentation
1 parent 53bfaab commit ae87fec

1 file changed

Lines changed: 16 additions & 9 deletions

File tree

test/convenience-commit.js

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ var helper = {
2525

2626
/**
2727
* Test that the commit object is present.
28-
*
29-
* @param {Object} test
3028
*/
3129
exports.method = function(test){
3230
test.expect(2);
@@ -35,9 +33,7 @@ exports.method = function(test){
3533
};
3634

3735
/**
38-
* Test that
39-
*
40-
* @param {Object} test
36+
* Test that improper commit ID's result in an error message
4137
*/
4238
exports.improperCommitId = function(test) {
4339
test.expect(1);
@@ -79,8 +75,6 @@ exports.history = function(test) {
7975

8076
/**
8177
* Test that retreiving master branch's HEAD commit works as expected.
82-
*
83-
* @param {Object} test
8478
*/
8579
exports.masterHead = function(test) {
8680
test.expect(2);
@@ -138,8 +132,6 @@ exports.parent = function(test) {
138132

139133
/**
140134
* Test that retrieving and walking a commit's tree works as expected.
141-
*
142-
* @param {Object} test
143135
*/
144136
exports.tree = function(test) {
145137
test.expect(2);
@@ -163,3 +155,18 @@ exports.tree = function(test) {
163155
});
164156
});
165157
};
158+
159+
/**
160+
* Test that parentsDiffTrees works as expected.
161+
*/
162+
exports.parentsDiffTrees = function(test) {
163+
test.expect(1);
164+
git.repo('../.git', function(error, repository) {
165+
repository.commit(historyCountKnownSHA, function(error, commit) {
166+
commit.parentsDiffTrees(function(error, parentsDiffTrees) {
167+
console.log(arguments);
168+
process.exit();
169+
});
170+
});
171+
});
172+
};

0 commit comments

Comments
 (0)