33/**
44 * Dependencies
55 */
6- const replace = require ( '../lib /replace-in-file' ) ;
6+ const replace = require ( './replace-in-file' ) ;
77const fs = require ( 'fs' ) ;
88const writeFile = Promise . promisify ( fs . writeFile ) ;
99const deleteFile = Promise . promisify ( fs . unlink ) ;
@@ -91,7 +91,7 @@ describe('Replace in file', () => {
9191 expect ( match ) . to . equal ( 're place' ) ;
9292 expect ( file ) . to . equal ( 'test1' ) ;
9393 return 'b' ;
94- }
94+ } ,
9595 } ) . then ( ( ) => {
9696 const test1 = fs . readFileSync ( 'test1' , 'utf8' ) ;
9797 const test2 = fs . readFileSync ( 'test2' , 'utf8' ) ;
@@ -122,7 +122,7 @@ describe('Replace in file', () => {
122122 expect ( match ) . to . equal ( 're place' ) ;
123123 expect ( file ) . to . equal ( 'test1' ) ;
124124 return 'b' ;
125- }
125+ } ,
126126 } ) . then ( ( ) => {
127127 const test1 = fs . readFileSync ( 'test1' , 'utf8' ) ;
128128 expect ( test1 ) . to . equal ( 'a b c' ) ;
@@ -372,7 +372,7 @@ describe('Replace in file', () => {
372372 expect ( match ) . to . equal ( 're place' ) ;
373373 expect ( file ) . to . equal ( 'test1' ) ;
374374 return 'b' ;
375- }
375+ } ,
376376 } , ( ) => {
377377 const test1 = fs . readFileSync ( 'test1' , 'utf8' ) ;
378378 const test2 = fs . readFileSync ( 'test2' , 'utf8' ) ;
@@ -403,7 +403,7 @@ describe('Replace in file', () => {
403403 expect ( match ) . to . equal ( 're place' ) ;
404404 expect ( file ) . to . equal ( 'test1' ) ;
405405 return 'b' ;
406- }
406+ } ,
407407 } , ( ) => {
408408 const test1 = fs . readFileSync ( 'test1' , 'utf8' ) ;
409409 expect ( test1 ) . to . equal ( 'a b c' ) ;
@@ -688,7 +688,7 @@ describe('Replace in file', () => {
688688 expect ( match ) . to . equal ( 're place' ) ;
689689 expect ( file ) . to . equal ( 'test1' ) ;
690690 return 'b' ;
691- }
691+ } ,
692692 } ) ;
693693 const test1 = fs . readFileSync ( 'test1' , 'utf8' ) ;
694694 const test2 = fs . readFileSync ( 'test2' , 'utf8' ) ;
@@ -715,7 +715,7 @@ describe('Replace in file', () => {
715715 expect ( match ) . to . equal ( 're place' ) ;
716716 expect ( file ) . to . equal ( 'test1' ) ;
717717 return 'b' ;
718- }
718+ } ,
719719 } ) ;
720720 const test1 = fs . readFileSync ( 'test1' , 'utf8' ) ;
721721 expect ( test1 ) . to . equal ( 'a b c' ) ;
0 commit comments