Skip to content

Commit

Permalink
More test tidying up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Day committed Mar 30, 2011
1 parent 53ac44a commit 9a68762
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 7 additions & 7 deletions test/revwalker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ vows.describe("RevWalker").addBatch({
"Sorting a revwalker *asynchronously*": {
topic: function() {
var walker = repo.createWalker();
walker.sort(gitteh.SORT_TIME, this.callback);
walker.sort(gitteh.GIT_SORT_TIME, this.callback);
},

"works": function(res) {
Expand All @@ -194,7 +194,7 @@ vows.describe("RevWalker").addBatch({
topic: function() {
var walker = repo.createWalker();
return function() {
walker.sort(gitteh.SORT_TIME);
walker.sort(gitteh.GIT_SORT_TIME);
};
},

Expand Down Expand Up @@ -237,7 +237,7 @@ vows.describe("RevWalker").addBatch({
},

"calling *next()* gives us first commit.": function(walker) {
walker.sort(gitteh.SORT_TIME | gitteh.SORT_REVERSE);
walker.sort(gitteh.GIT_SORT_TIME | gitteh.GIT_SORT_REVERSE);
walker.push(repo.getCommit(fixtureValues.SECOND_COMMIT.id));
var commit = walker.next();
assert.equal(commit.id, fixtureValues.FIRST_COMMIT.id);
Expand All @@ -257,7 +257,7 @@ vows.describe("RevWalker").addBatch({
"RevWalker from fifth commit in topographical order": {
topic: function() {
var walker = repo.createWalker();
walker.sort(gitteh.SORT_TOPOLOGICAL);
walker.sort(gitteh.GIT_SORT_TOPOLOGICAL);
walker.push(repo.getCommit(fixtureValues.FIFTH_COMMIT.id));
return walker;
},
Expand All @@ -281,7 +281,7 @@ vows.describe("RevWalker").addBatch({
"RevWalker with reset": {
topic: function() {
var walker = repo.createWalker();
walker.sort(gitteh.SORT_TIME);
walker.sort(gitteh.GIT_SORT_TIME);
walker.push(fixtureValues.SECOND_COMMIT.id);
walker.reset();
walker.push(fixtureValues.FIFTH_COMMIT.id);
Expand All @@ -293,11 +293,11 @@ vows.describe("RevWalker").addBatch({
assert.equal(commit.id, fixtureValues.FIFTH_COMMIT.id);
}
},

"RevWalker with hide": {
topic: function() {
var walker = repo.createWalker();
walker.sort(gitteh.SORT_TIME);
walker.sort(gitteh.GIT_SORT_TIME);
walker.push(fixtureValues.FOURTH_COMMIT.id);
walker.hide(fixtureValues.THIRD_COMMIT.id);
walker.next();
Expand Down
1 change: 0 additions & 1 deletion test/tree.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ var createTreeTestContext = function(topic, treeFixture) {
topic: topic,

"gives us a Tree": function(tree) {
console.log(tree);
assert.isTrue(!!tree);
},

Expand Down

0 comments on commit 9a68762

Please sign in to comment.