Skip to content

Commit 220ce5f

Browse files
committed
fix diff test
1 parent 9d24caa commit 220ce5f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/tests/diff.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ describe("Diff", function() {
153153
patches.forEach(function(patch) {
154154
hunkPromises.push(patch.hunks()
155155
.then(function(hunks) {
156-
result.concat(hunks);
156+
result = result.concat(hunks);
157157
})
158158
);
159159
});
@@ -170,7 +170,7 @@ describe("Diff", function() {
170170
hunks.forEach(function(hunk) {
171171
linePromises.push(hunk.lines()
172172
.then(function(lines) {
173-
result.concat(lines);
173+
result = result.concat(lines);
174174
})
175175
);
176176
});

0 commit comments

Comments
 (0)