Make Join-String -InputObject 1,2,3 result equal to 1,2,3 | Join-String result (#8611)

Make `Join-String -InputObject 1,2,3` result equal to `1,2,3 | Join-String` result.

Fix #8610
This commit is contained in:
Sergey Vasin authored and Travis Plunk committed 2019-01-24 12:53:37 -08:00
1 parent 863528881f
commit a9841d98fa
2 files changed
+44 -32

No files matched your search

@@ -11,6 +11,12 @@ Describe "Join-String" -Tags "CI" {
{ Join-String -InputObject $testObject } | Should -Not -Throw
}
It "'Input | Join-String' should be equal to 'Join-String -InputObject Input'" {
$result1 = $testObject | Join-String
$result2 = Join-String -InputObject $testObject
$result1 | Should -BeExactly $result2
}
It "Should return a single string" {
$actual = $testObject | Join-String