Commit d6ee524

Anton Medvedev <anton@medv.io>
2022-10-04 23:23:37
Fix tests
1 parent 163ea66
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 () => {