Commit d6ee524
Changed files (2)
test/util.test.js
@@ -61,7 +61,7 @@ test('quote()', () => {
test('quotePowerShgell()', () => {
assert.is(quotePowerShell('string'), 'string')
- assert.is(quotePowerShell(`'`), `''`)
+ assert.is(quotePowerShell(`'`), `''''`)
})
test('duration parsing works', () => {
test/win32.test.js
@@ -22,8 +22,8 @@ $.verbose = false
if (process.platform === 'win32') {
test('should work with windows-specific commands', async () => {
- const p = await $`ver`
- assert.match(p.stdout, /Windows/)
+ const p = await $`get-host`
+ assert.match(p.stdout, /PowerShell/)
})
test('quotePowerShell works', async () => {