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
Added a test for Diff.blobToBuffer
  • Loading branch information
bleathem committed Apr 21, 2015
commit 75cbff0dbff910e1769de43ce33a6474a30edbe1
12 changes: 10 additions & 2 deletions test/tests/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,16 @@ describe("Diff", function() {
null,
null,
null,
function() {
console.log("delta");
function(delta, hunk, payload) {
assert.equal(hunk.oldStart(), 1);
assert.equal(hunk.oldLines(), 19);
assert.equal(hunk.newStart(), 1);
assert.equal(hunk.newLines(), 1);
assert.equal(
hunk.header().substring(0, hunk.headerLen() - 1),
"@@ -1,19 +1 @@"
);
done();
});
});
});
Expand Down