Skip to content

Commit 7f5deb2

Browse files
committed
fixup: fix formatting
1 parent 3869622 commit 7f5deb2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/unit/node/util.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,10 @@ describe("isWsl", () => {
496496
const fileName = "proc-version"
497497
const osRelease = "5.4.0-1066-gke"
498498
const pathToFile = path.join(await tempDirHelper(testName), fileName)
499-
await fs.writeFile(pathToFile, "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")
499+
await fs.writeFile(
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",
502+
)
500503
expect(await util.isWsl("linux", osRelease, pathToFile)).toBe(true)
501504
})
502505
})
@@ -514,7 +517,10 @@ describe("isWsl", () => {
514517
const fileName = "proc-version3"
515518
const osRelease = "3.4.0-Microsoft"
516519
const pathToFile = path.join(await tempDirHelper(testName), fileName)
517-
await fs.writeFile(pathToFile, "Linux version 3.4.0-Microsoft (Microsoft@Microsoft.com) (gcc version 4.7 (GCC) ) #1 SMP PREEMPT Wed Dec 31 14:42:53 PST 2014")
520+
await fs.writeFile(
521+
pathToFile,
522+
"Linux version 3.4.0-Microsoft (Microsoft@Microsoft.com) (gcc version 4.7 (GCC) ) #1 SMP PREEMPT Wed Dec 31 14:42:53 PST 2014",
523+
)
518524
expect(await util.isWsl("win32", osRelease, pathToFile)).toBe(false)
519525
})
520526
})

0 commit comments

Comments
 (0)