moved out of BeforeAll

This commit is contained in:
dfinke
2018-05-27 13:04:37 -04:00
parent 2683ec985f
commit ba06c4620f
2 changed files with 13 additions and 10 deletions

View File

@@ -1,12 +1,16 @@
Import-Module $PSScriptRoot\..\..\ImportExcel.psd1
$data = $null
$timer = Measure-Command {
$data = Import-Excel $PSScriptRoot\Simple.xlsx
}
Describe "Tests" {
BeforeAll {
$data = $null
$timer = Measure-Command {
$data = Import-Excel $PSScriptRoot\Simple.xlsx
}
}
# BeforeAll {
# $data = $null
# $timer = Measure-Command {
# $data = Import-Excel $PSScriptRoot\Simple.xlsx
# }
# }
It "Should have two items" {
$data.count | Should be 2