From d6ee52408f9553772fe189441044dcd7e4bec94b Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Tue, 4 Oct 2022 23:23:37 +0200 Subject: [PATCH] Fix tests --- test/util.test.js | 2 +- test/win32.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/util.test.js b/test/util.test.js index 20ed09097d..047940ec19 100644 --- a/test/util.test.js +++ b/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', () => { diff --git a/test/win32.test.js b/test/win32.test.js index 3304fc20e8..e887c514dc 100644 --- a/test/win32.test.js +++ b/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 () => {