added cross-platform newline support
This commit is contained in:
parent
4319987dd1
commit
5d31b0affd
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
Describe "New-Variable" {
|
||||
$nl = [Environment]::NewLine
|
||||
|
||||
It "Should create a new variable with no parameters" {
|
||||
{ New-Variable var1 } | Should Not Throw
|
||||
}
|
||||
|
@ -62,7 +64,7 @@
|
|||
|
||||
$output = $in | Format-List -Property Description | Out-String
|
||||
|
||||
$output | Should Be "`n`nDescription : test description`n`n`n`n"
|
||||
$output | Should Be "${nl}${nl}Description : test description${nl}${nl}${nl}${nl}"
|
||||
}
|
||||
|
||||
It "Should be able to set the value using the value switch" {
|
||||
|
|
Loading…
Reference in a new issue