Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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.
  • Loading branch information
John Haley committed Apr 8, 2016
commit 615ef49f95eaa4ea81434c1d504e55aa9b3fd662
3 changes: 1 addition & 2 deletions test/tests/stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ describe("Stage", function() {
});
return test.repository.stageLines(fileName, linesToStage, !staging);
})
.then(function(stageResult) {
assert.equal(stageResult, 0);
.then(function() {
return test.repository.refreshIndex();
})
.then(function(reloadedIndex) {
Expand Down