Skip to content

Commit 3869622

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

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
@@ -512,9 +512,9 @@ describe("isWsl", () => {
512512
describe("on Win32 with microsoft in /proc/version", () => {
513513
it("should return false", async () => {
514514
const fileName = "proc-version3"
515-
const osRelease = "Microsoft"
515+
const osRelease = "3.4.0-Microsoft"
516516
const pathToFile = path.join(await tempDirHelper(testName), fileName)
517-
await fs.writeFile(pathToFile, "microsoft")
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")
518518
expect(await util.isWsl("win32", osRelease, pathToFile)).toBe(false)
519519
})
520520
})

0 commit comments

Comments
 (0)