From 1cfa118567086f9850195b833f565d3f370b5042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Legan=C3=A9s-Combarro=20=27piranna?= Date: Tue, 15 Aug 2017 14:30:48 +0200 Subject: [PATCH] Failing test for #189 --- test/patch/apply.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/patch/apply.js b/test/patch/apply.js index 96ff4703..67965662 100755 --- a/test/patch/apply.js +++ b/test/patch/apply.js @@ -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'