is-windows-bash
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -8,2 +8,3 @@ fs = require('fs') | ||
process.env && | ||
process.env.SHELL && | ||
process.env.SHELL.toLowerCase() === '/bin/bash'); | ||
@@ -10,0 +11,0 @@ } |
@@ -58,3 +58,11 @@ const fs = require('fs'); | ||
process = proc; | ||
}) | ||
}); | ||
test("Should retrun false without a shell variable", () => { | ||
const proc = process; | ||
process.env.SHELL = {}; | ||
expect(isWindowsBash()).toBe(false); | ||
process = proc; | ||
}); | ||
}); |
{ | ||
"name": "is-windows-bash", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Determines if Node is running on Windows Bash (WSL)", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3525
72
9