We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c13b4d5 commit 3869622Copy full SHA for 3869622
test/unit/node/util.test.ts
@@ -512,9 +512,9 @@ describe("isWsl", () => {
512
describe("on Win32 with microsoft in /proc/version", () => {
513
it("should return false", async () => {
514
const fileName = "proc-version3"
515
- const osRelease = "Microsoft"
+ const osRelease = "3.4.0-Microsoft"
516
const pathToFile = path.join(await tempDirHelper(testName), fileName)
517
- await fs.writeFile(pathToFile, "microsoft")
+ 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")
518
expect(await util.isWsl("win32", osRelease, pathToFile)).toBe(false)
519
})
520
0 commit comments