Welcome to mirror list, hosted at ThFree Co, Russian Federation.

is-windows-shell.js « utils « lib « test - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 95519925c97ce6c83a007e672b8fa6abb63ea78f (plain)
1
2
3
4
5
6
7
8
const t = require('tap')
Object.defineProperty(process, 'platform', {
  value: 'win32',
})
const isWindows = require('../../../lib/utils/is-windows.js')
const isWindowsBash = require('../../../lib/utils/is-windows-bash.js')
const isWindowsShell = require('../../../lib/utils/is-windows-shell.js')
t.equal(isWindowsShell, isWindows && !isWindowsBash)