update filename and check count returned

This commit is contained in:
dfinke
2022-11-07 12:36:59 -05:00
parent 30f2597f0d
commit a1986de292

View File

@@ -3,9 +3,10 @@ Import-Module $PSScriptRoot\..\..\ImportExcel.psd1 -Force
Describe "Tests Import-Excel Timings" -Tag Timing { Describe "Tests Import-Excel Timings" -Tag Timing {
It "Should read the 20k xlsx in -le 2100 milliseconds" { It "Should read the 20k xlsx in -le 2100 milliseconds" {
$timer = Measure-Command { $timer = Measure-Command {
$null = Import-Excel $PSScriptRoot\Rows20k.xlsx $data = Import-Excel $PSScriptRoot\TimingRows20k.xlsx
} }
$timer.TotalMilliseconds | Should -BeLessOrEqual 2100 $timer.TotalMilliseconds | Should -BeLessOrEqual 2100
$data.Count | Should -Be 19999
} }
} }