mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Remove newline var for New-Variable Pester Unit Test
This commit is contained in:
1 parent
4a619f49e3
commit
1f739bb85c
1 file changed
+1
-3
@@ -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" {
|
||||
|
||||
Reference in new issue
Block a user