@@ -25,7 +25,7 @@ describe('testing locking', () => {
2525 test ( 'file should fail to be found to be locked' , ( done ) => {
2626 lockFile ( getFilePath ( 'package.fail.json' ) , ( error ) => {
2727 expect ( error . message ) . toMatch (
28- / E N O E N T : n o s u c h f i l e o r d i r e c t o r y , s t a t ' ( .* ) p a c k a g e .f a i l .j s o n ' /
28+ / E N O E N T : n o s u c h f i l e o r d i r e c t o r y , s t a t ' ( .* ) p a c k a g e .f a i l .j s o n ' /
2929 ) ;
3030 done ( ) ;
3131 } ) ;
@@ -63,7 +63,7 @@ describe('testing locking', () => {
6363 } ;
6464 readFile ( getFilePath ( 'package.fail.json' ) , options , ( error ) => {
6565 expect ( error . message ) . toMatch (
66- / E N O E N T : n o s u c h f i l e o r d i r e c t o r y , o p e n ' ( .* ) p a c k a g e .f a i l .j s o n ' /
66+ / E N O E N T : n o s u c h f i l e o r d i r e c t o r y , o p e n ' ( .* ) p a c k a g e .f a i l .j s o n ' /
6767 ) ;
6868 done ( ) ;
6969 } ) ;
@@ -75,7 +75,7 @@ describe('testing locking', () => {
7575 } ;
7676 readFile ( getFilePath ( 'wrong.package.json' ) , options , ( error ) => {
7777 expect ( error . message ) . toEqual (
78- 'Unexpected token } in JSON at position 44'
78+ 'Unexpected token } in JSON at position 44'
7979 ) ;
8080 done ( ) ;
8181 } ) ;
@@ -101,7 +101,7 @@ describe('testing locking', () => {
101101 } ;
102102 readFile ( getFilePath ( 'wrong.package.json' ) , options , ( error ) => {
103103 expect ( error . message ) . toEqual (
104- 'Unexpected token } in JSON at position 44'
104+ 'Unexpected token } in JSON at position 44'
105105 ) ;
106106 removeTempFile ( 'wrong.package.json.lock' ) ;
107107 done ( ) ;
0 commit comments