@@ -20,13 +20,13 @@ describe("SimpleFs", () => {
2020 test ( "non-existent file" , ( ) => {
2121 const fileName = "fake-file-that-does-not-exist.txt" ;
2222 expect ( ( ) => simpleFs . readFile ( fileName ) ) . toThrowError (
23- `ENOENT: no such file or directory, open '${ fileName } `
23+ `ENOENT: no such file or directory, open '${ fileName } ` ,
2424 ) ;
2525 } ) ;
2626
2727 test ( "directory fails" , ( ) => {
2828 expect ( ( ) => simpleFs . readFile ( "." ) ) . toThrowError (
29- "EISDIR: illegal operation on a directory, read"
29+ "EISDIR: illegal operation on a directory, read" ,
3030 ) ;
3131 } ) ;
3232
@@ -43,7 +43,7 @@ describe("SimpleFs", () => {
4343 describe ( "writeFile" , ( ) => {
4444 test ( "writing to directory fails" , ( ) => {
4545 expect ( ( ) => simpleFs . writeFile ( tempDir , "anything" ) ) . toThrow (
46- `EISDIR: illegal operation on a directory, open '${ tempDir } '`
46+ `EISDIR: illegal operation on a directory, open '${ tempDir } '` ,
4747 ) ;
4848 } ) ;
4949
@@ -81,14 +81,14 @@ describe("SimpleFs", () => {
8181 test ( "non-existent directory" , ( ) => {
8282 const directory = "fake-directory-that-does-not-exist" ;
8383 expect ( ( ) => simpleFs . listFiles ( directory ) ) . toThrowError (
84- `ENOENT: no such file or directory, scandir '${ directory } '`
84+ `ENOENT: no such file or directory, scandir '${ directory } '` ,
8585 ) ;
8686 } ) ;
8787
8888 test ( "file fails" , ( ) => {
8989 const fileName = "package.json" ;
9090 expect ( ( ) => simpleFs . listFiles ( fileName ) ) . toThrowError (
91- `ENOTDIR: not a directory, scandir '${ fileName } '`
91+ `ENOTDIR: not a directory, scandir '${ fileName } '` ,
9292 ) ;
9393 } ) ;
9494
@@ -106,7 +106,7 @@ describe("SimpleFs", () => {
106106 ".gitignore" , // Hidden file
107107 "src/index.ts" , // In directory
108108 "src/__tests__/simple-fs-test.ts" , // Deep file in directory
109- ] )
109+ ] ) ,
110110 ) ;
111111
112112 // Don't include folders, just files
@@ -126,7 +126,7 @@ describe("SimpleFs", () => {
126126 const file = path . join ( tempDir , "file.txt" ) ;
127127 simpleFs . writeFile ( file , "contents" ) ;
128128 expect ( ( ) => simpleFs . createFolder ( file ) ) . toThrow (
129- `EEXIST: file already exists, mkdir '${ file } '`
129+ `EEXIST: file already exists, mkdir '${ file } '` ,
130130 ) ;
131131 } ) ;
132132
@@ -154,7 +154,7 @@ describe("SimpleFs", () => {
154154 expect ( simpleFs . readFile ( file ) . toString ( ) ) . toEqual ( contents ) ;
155155 simpleFs . deleteFolder ( file ) ;
156156 expect ( ( ) => simpleFs . readFile ( file ) . toString ( ) ) . toThrow (
157- `ENOENT: no such file or directory, open '${ file } `
157+ `ENOENT: no such file or directory, open '${ file } ` ,
158158 ) ;
159159 } ) ;
160160
@@ -168,10 +168,10 @@ describe("SimpleFs", () => {
168168 expect ( simpleFs . readFile ( file ) . toString ( ) ) . toEqual ( contents ) ;
169169 simpleFs . deleteFolder ( folder ) ;
170170 expect ( ( ) => simpleFs . readFile ( file ) . toString ( ) ) . toThrow (
171- `ENOENT: no such file or directory, open '${ file } `
171+ `ENOENT: no such file or directory, open '${ file } ` ,
172172 ) ;
173173 expect ( ( ) => simpleFs . listFiles ( folder ) . toString ( ) ) . toThrow (
174- `ENOENT: no such file or directory, scandir '${ folder } `
174+ `ENOENT: no such file or directory, scandir '${ folder } ` ,
175175 ) ;
176176 } ) ;
177177 } ) ;
0 commit comments