Skip to content

Commit

Permalink
Failing test for kpdecker#189
Browse files Browse the repository at this point in the history
  • Loading branch information
piranna committed Aug 15, 2017
1 parent 2a7ae3e commit 1cfa118
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/patch/apply.js
Expand Up @@ -461,6 +461,23 @@ describe('patch/apply', function() {
+ 'line5\n');
});

it('should create a file', function() {
expect(applyPatch('',

'--- test\theader1\n'
+ '+++ test\theader2\n'
+ '@@ -0,0 +1,4 @@\n'
+ '+line1\n'
+ '+line2\n'
+ '+line3\n'
+ '+line4\n'))
.to.equal(
'line1\n'
+ 'line2\n'
+ 'line3\n'
+ 'line4\n');
});

it('should erase a file', function() {
expect(applyPatch(
'line1\n'
Expand Down

0 comments on commit 1cfa118

Please sign in to comment.