diff --git a/src/pester-tests/Test-Format-List.Tests.ps1 b/src/pester-tests/Test-Format-List.Tests.ps1 index da0069abb8..d284128dd5 100644 --- a/src/pester-tests/Test-Format-List.Tests.ps1 +++ b/src/pester-tests/Test-Format-List.Tests.ps1 @@ -58,9 +58,9 @@ Describe "Test-Format-List" { It "Should not show anything other than the requested props" { $output = Get-Process | Format-List -Property Name | Out-String - $output | Should Not Match "CPU" - $output | Should Not Match "Id" - $output | Should Not Match "Handle" + $output | Should Not Match "CPU :" + $output | Should Not Match "Id :" + $output | Should Not Match "Handle :" } It "Should be able to take input without piping objects to it" {