diff --git a/test/powershell/Set-Variable.Tests.ps1 b/test/powershell/Set-Variable.Tests.ps1 index b6925bd37..9b12fb010 100644 --- a/test/powershell/Set-Variable.Tests.ps1 +++ b/test/powershell/Set-Variable.Tests.ps1 @@ -162,8 +162,6 @@ Describe "Set-Variable DRT Unit Tests" -Tags DRT{ } Describe "Set-Variable" { - ${nl} = [Environment]::Newline - It "Should create a new variable with no parameters" { { Set-Variable testVar } | Should Not Throw } @@ -216,7 +214,7 @@ Describe "Set-Variable" { $output = $in | Format-List -Property Description | Out-String # This will cause errors running these tests in Windows - $output | Should Be "${nl}${nl}Description : test description${nl}${nl}${nl}${nl}" + $output.Trim() | Should Be "Description : test description" } It "Should be able to set the value using the value switch" {