Skip to content

Commit 2841d12

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 6bb947e commit 2841d12

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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)