@@ -120,14 +120,13 @@ describe('patch/create', function() {
120120 + '\\ No newline at end of file\n' ) ;
121121 } ) ;
122122
123- it ( 'should output only one "no newline" at end of file message on empty file' , function ( ) {
123+ it ( 'should output no "no newline" at end of file message on empty file' , function ( ) {
124124 expect ( createPatch ( 'test' , '' , 'line1\nline2\nline3\nline4' , 'header1' , 'header2' ) ) . to . equal (
125125 'Index: test\n'
126126 + '===================================================================\n'
127127 + '--- test\theader1\n'
128128 + '+++ test\theader2\n'
129- + '@@ -1,0 +1,4 @@\n'
130- + '\\ No newline at end of file\n'
129+ + '@@ -0,0 +1,4 @@\n'
131130 + '+line1\n'
132131 + '+line2\n'
133132 + '+line3\n'
@@ -139,7 +138,7 @@ describe('patch/create', function() {
139138 + '===================================================================\n'
140139 + '--- test\theader1\n'
141140 + '+++ test\theader2\n'
142- + '@@ -1,4 +1 ,0 @@\n'
141+ + '@@ -1,4 +0 ,0 @@\n'
143142 + '-line1\n'
144143 + '-line2\n'
145144 + '-line3\n'
@@ -528,7 +527,7 @@ describe('patch/create', function() {
528527 expect ( diffResult ) . to . equal ( expectedResult ) ;
529528 } ) ;
530529
531- it ( 'should generatea a patch with context size 0' , function ( ) {
530+ it ( 'should generate a patch with context size 0' , function ( ) {
532531 const expectedResult =
533532 'Index: testFileName\n'
534533 + '===================================================================\n'
@@ -538,11 +537,11 @@ describe('patch/create', function() {
538537 + '-value\n'
539538 + '+new value\n'
540539 + '+new value 2\n'
541- + '@@ -11,1 +12 ,0 @@\n'
540+ + '@@ -11,1 +11 ,0 @@\n'
542541 + '-remove value\n'
543- + '@@ -21,1 +21 ,0 @@\n'
542+ + '@@ -21,1 +20 ,0 @@\n'
544543 + '-remove value\n'
545- + '@@ -30 ,0 +29,1 @@\n'
544+ + '@@ -29 ,0 +29,1 @@\n'
546545 + '+add value\n'
547546 + '@@ -34,1 +34,2 @@\n'
548547 + '-value\n'
0 commit comments