File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ describe("isWsl", () => {
498
498
const pathToFile = path . join ( await tempDirHelper ( testName ) , fileName )
499
499
await fs . writeFile (
500
500
pathToFile ,
501
- "Linux version 5 .4.0-1066-gke (buildd@lcy02-amd64-039 ) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04)) #69-Ubuntu SMP Fri Mar 11 13:52:45 UTC 202 " ,
501
+ "Linux version 3 .4.0-Microsoft ([email protected] ) (gcc version 4.7 (GCC) ) #1 SMP PREEMPT Wed Dec 31 14:42:53 PST 2014 " ,
502
502
)
503
503
expect ( await util . isWsl ( "linux" , osRelease , pathToFile ) ) . toBe ( true )
504
504
} )
@@ -508,7 +508,10 @@ describe("isWsl", () => {
508
508
const fileName = "proc-version2"
509
509
const osRelease = "Linux"
510
510
const pathToFile = path . join ( await tempDirHelper ( testName ) , fileName )
511
- await fs . writeFile ( pathToFile , "linux" )
511
+ await fs . writeFile (
512
+ pathToFile ,
513
+ "Linux version 5.4.0-1066-gke (buildd@lcy02-amd64-039) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04)) #69-Ubuntu SMP Fri Mar 11 13:52:45 UTC 202" ,
514
+ )
512
515
expect ( await util . isWsl ( "linux" , osRelease , pathToFile ) ) . toBe ( false )
513
516
} )
514
517
} )
You can’t perform that action at this time.
0 commit comments