Sync to Doug's 6.5.3 release

This commit is contained in:
jhoneill
2019-11-23 16:12:29 +00:00
parent d4da73e8f4
commit f6c66e21a7
6 changed files with 91 additions and 51 deletions

View File

@@ -42,4 +42,25 @@ Describe "Tests" {
$data[0].p1 | Should be "a"
$data[1].p1 | Should be "b"
}
It "Should take Paths from parameter".PadRight(90) {
$data = Import-Excel -Path (Get-ChildItem -Path $PSScriptRoot -Filter "TestData?.xlsx").FullName
$data.count | Should be 4
$data[0].cola | Should be 1
$data[2].cola | Should be 5
}
It "Should take Paths from pipeline".PadRight(90) {
$data = (Get-ChildItem -Path $PSScriptRoot -Filter "TestData?.xlsx").FullName | Import-Excel
$data.count | Should be 4
$data[0].cola | Should be 1
$data[2].cola | Should be 5
}
It "Should support PipelineVariable".PadRight(90) {
$data = Import-Excel $PSScriptRoot\Simple.xlsx -PipelineVariable 'Pv' | ForEach-Object { $Pv.p1 }
$data.count | Should be 2
$data[0] | Should be "a"
$data[1] | Should be "b"
}
}

Binary file not shown.

Binary file not shown.