From 5c0d17e3a2973dd7be5cae7b0793af6bdcb4b2ba Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Wed, 4 May 2016 18:05:46 -0700 Subject: [PATCH] Update ConsoleHost tests --- test/powershell/ConsoleHost.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/powershell/ConsoleHost.Tests.ps1 b/test/powershell/ConsoleHost.Tests.ps1 index 4d57be5ed8..4013faf251 100644 --- a/test/powershell/ConsoleHost.Tests.ps1 +++ b/test/powershell/ConsoleHost.Tests.ps1 @@ -1,11 +1,11 @@ -Describe "CoreConsoleHost unit tests" { +Describe "ConsoleHost unit tests" { $powershell = Join-Path -Path $PsHome -ChildPath "powershell" Context "Command-line parsing" { foreach ($x in "--help", "-help", "-h", "-?", "--he", "-hel", "--HELP", "-hEl") { It "Accepts '$x' as a parameter for help" { - & $powershell -noprofile $x | ?{ $_ -match "usage: powershell" } | Should Not BeNullOrEmpty + & $powershell -noprofile $x | ?{ $_ -match "PowerShell[.exe] -Help | -? | /?" } | Should Not BeNullOrEmpty } }