From 1f739bb85c380177bb7409799743a4e51e693e93 Mon Sep 17 00:00:00 2001 From: JumpingYang001 Date: Mon, 18 Apr 2016 01:33:35 -0700 Subject: [PATCH] Remove newline var for New-Variable Pester Unit Test --- test/powershell/New-Variable.Tests.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/powershell/New-Variable.Tests.ps1 b/test/powershell/New-Variable.Tests.ps1 index ac0bcfa4f6..27b75cc2b8 100644 --- a/test/powershell/New-Variable.Tests.ps1 +++ b/test/powershell/New-Variable.Tests.ps1 @@ -58,8 +58,6 @@ Describe "New-Variable DRT Unit Tests" -Tags DRT{ } Describe "New-Variable" { - $nl = [Environment]::NewLine - It "Should create a new variable with no parameters" { { New-Variable var1 } | Should Not Throw } @@ -123,7 +121,7 @@ Describe "New-Variable" { $output = $in | Format-List -Property Description | Out-String - $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" {