Skip to content

Commit 615ef49

Browse files
author
John Haley
committed
Fix staging tests
Writing an index to disk is now async and no longer returns it's result code. Instead of checking for `0` we can just handle the error callback/rejected promise case.
1 parent e958562 commit 615ef49

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/tests/stage.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ describe("Stage", function() {
142142
});
143143
return test.repository.stageLines(fileName, linesToStage, !staging);
144144
})
145-
.then(function(stageResult) {
146-
assert.equal(stageResult, 0);
145+
.then(function() {
147146
return test.repository.refreshIndex();
148147
})
149148
.then(function(reloadedIndex) {

0 commit comments

Comments
 (0)