From 22af5345930968bd3ea6f22c88e675754aea5b84 Mon Sep 17 00:00:00 2001 From: Peter Wawa Date: Wed, 12 May 2021 09:52:52 +0300 Subject: [PATCH] Fix problem with unnecessary error --- PSKoans/Koans/Cmdlets 1/AboutSelectObject.Koans.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PSKoans/Koans/Cmdlets 1/AboutSelectObject.Koans.ps1 b/PSKoans/Koans/Cmdlets 1/AboutSelectObject.Koans.ps1 index 6149ec5ec..ec7e224d6 100644 --- a/PSKoans/Koans/Cmdlets 1/AboutSelectObject.Koans.ps1 +++ b/PSKoans/Koans/Cmdlets 1/AboutSelectObject.Koans.ps1 @@ -68,7 +68,7 @@ Describe 'Select-Object' { $PropertyToExpand = '____' - $Value = Get-Item -Path $PSHome | Select-Object -ExpandProperty $PropertyToExpand + $Value = Get-Item -Path $PSHome | Select-Object -ExpandProperty $PropertyToExpand -ErrorAction SilentlyContinue $Value | Should -Be 'Directory' }