mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-01-04 09:33:34 +00:00
Add manifest check to tests
This commit is contained in:
@@ -10,17 +10,20 @@ Describe "Tests" {
|
||||
$data = Import-Excel $PSScriptRoot\Simple.xlsx
|
||||
}
|
||||
}
|
||||
|
||||
It "Should have two items".PadRight(90) {
|
||||
It "Should have a valid manifest".PadRight(90){
|
||||
{try {Test-ModuleManifest -Path $PSScriptRoot\..\..\ImportExcel.psd1 -ErrorAction stop}
|
||||
catch {throw} } | should not throw
|
||||
}
|
||||
It "Should have two items in the imported simple data".PadRight(90) {
|
||||
$data.count | Should be 2
|
||||
}
|
||||
|
||||
It "Should have items a and b".PadRight(90) {
|
||||
It "Should have items a and b in the imported simple data".PadRight(90) {
|
||||
$data[0].p1 | Should be "a"
|
||||
$data[1].p1 | Should be "b"
|
||||
}
|
||||
|
||||
It "Should read fast < 2100 milliseconds".PadRight(90) {
|
||||
It "Should read the simple xlsx in < 2100 milliseconds".PadRight(90) {
|
||||
$timer.TotalMilliseconds | should BeLessThan 2100
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user