mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-16 00:04:24 +00:00
Updated tests for export-excel
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
Import-Module $PSScriptRoot\..\ImportExcel.psd1 -Force
|
Import-Module $PSScriptRoot\..\ImportExcel.psd1 -Force
|
||||||
|
|
||||||
if (Get-process -Name Excel,xlim -ErrorAction SilentlyContinue) { Write-Warning -Message "You need to close Excel before running the tests." ; return}
|
if (Get-process -Name Excel,xlim -ErrorAction SilentlyContinue) { Write-Warning -Message "You need to close Excel before running the tests." ; return}
|
||||||
#53Describe ExportExcel {
|
Describe ExportExcel {
|
||||||
|
|
||||||
Context "#Example 1 # Creates and opens a file with the right number of rows and columns" {
|
Context "#Example 1 # Creates and opens a file with the right number of rows and columns" {
|
||||||
$path = "$env:TEMP\Test.xlsx"
|
$path = "$env:TEMP\Test.xlsx"
|
||||||
@@ -685,7 +685,7 @@ if (Get-process -Name Excel,xlim -ErrorAction SilentlyContinue) { Write-Warni
|
|||||||
}
|
}
|
||||||
Close-ExcelPackage -ExcelPackage $excel -nosave
|
Close-ExcelPackage -ExcelPackage $excel -nosave
|
||||||
}
|
}
|
||||||
describe "foo" {
|
|
||||||
Context " # Awkward multiple tables" {
|
Context " # Awkward multiple tables" {
|
||||||
$path = "$Env:TEMP\test.xlsx"
|
$path = "$Env:TEMP\test.xlsx"
|
||||||
remove-item -Path $path -ErrorAction SilentlyContinue
|
remove-item -Path $path -ErrorAction SilentlyContinue
|
||||||
|
|||||||
Reference in New Issue
Block a user