Rename test

This commit is contained in:
dfinke
2019-07-04 12:16:34 -04:00
parent 914c61048b
commit 5ded5111b4

View File

@@ -19,11 +19,6 @@
$actual | Should Not Be $null
}
# It "Should read with PSScriptRoot" {
# $actual = Import-Excel -Path "$PSScriptRoot\$($script:xlfileName)"
# $actual | Should Not Be $null
# }
It "Should read with just a file name and resolve to cwd" {
$actual = Import-Excel -Path "$($script:xlfileName)"
$actual | Should Not Be $null
@@ -32,4 +27,12 @@
It "Should fail for not found" {
{ Import-Excel -Path "ExcelFileDoesNotExist.xlsx" } | Should Throw "'ExcelFileDoesNotExist.xlsx' file not found"
}
It "Should fail for xls extension" {
{ Import-Excel -Path "ExcelFileDoesNotExist.xls" } | Should Throw "Import-Excel does not support reading this extension type .xls"
}
It "Should fail for xlsxs extension" {
{ Import-Excel -Path "ExcelFileDoesNotExist.xlsxs" } | Should Throw "Import-Excel does not support reading this extension type .xlsxs"
}
}