Skip to content

Commit c13b4d5

Browse files
jsjoeiocode-asher
andauthored
Update test/unit/node/util.test.ts
Co-authored-by: Asher <ash@coder.com>
1 parent 5fccb46 commit c13b4d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/node/util.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,9 @@ describe("isWsl", () => {
494494
describe("on Linux (microsoft)", () => {
495495
it("should return true", async () => {
496496
const fileName = "proc-version"
497-
const osRelease = "Linux"
497+
const osRelease = "5.4.0-1066-gke"
498498
const pathToFile = path.join(await tempDirHelper(testName), fileName)
499-
await fs.writeFile(pathToFile, "microsoft")
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")
500500
expect(await util.isWsl("linux", osRelease, pathToFile)).toBe(true)
501501
})
502502
})

0 commit comments

Comments
 (0)