File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -2292,6 +2292,7 @@ Deno.test("glob", async () => {
22922292 tempDir . join ( "test2.txt" ) . writeTextSync ( "test2\n" ) ;
22932293 const combined = ( await $ `cat *.ts` . noThrow ( ) . captureCombined ( true ) ) . combined ;
22942294 const err = combined
2295+ . replaceAll ( tempDir . toString ( ) , "$TEMP_DIR" )
22952296 . replaceAll ( tempDir . realPathSync ( ) . toString ( ) , "$TEMP_DIR" ) ;
22962297 assertEquals ( err , "glob: no matches found '$TEMP_DIR/*.ts'\n" ) ;
22972298 } ) ;
@@ -2302,6 +2303,7 @@ Deno.test("glob", async () => {
23022303
23032304 const combined = ( await $ `cat [].ts` . noThrow ( ) . captureCombined ( true ) ) . combined ;
23042305 const stderr = combined
2306+ . replaceAll ( tempDir . toString ( ) , "$TEMP_DIR" )
23052307 . replaceAll ( tempDir . realPathSync ( ) . toString ( ) , "$TEMP_DIR" ) ;
23062308 assertEquals (
23072309 stderr ,
@@ -2314,6 +2316,7 @@ Deno.test("glob", async () => {
23142316 tempDir . join ( "test2.txt" ) . writeTextSync ( "test2\n" ) ;
23152317 const combined = ( await $ `cat *.ts || echo 2` . noThrow ( ) . captureCombined ( true ) ) . combined ;
23162318 const replaced = combined
2319+ . replaceAll ( tempDir . toString ( ) , "$TEMP_DIR" )
23172320 . replaceAll ( tempDir . realPathSync ( ) . toString ( ) , "$TEMP_DIR" ) ;
23182321 assertEquals ( replaced , "glob: no matches found '$TEMP_DIR/*.ts'\n2\n" ) ;
23192322 } ) ;
You can’t perform that action at this time.
0 commit comments