Export-Excel.ps1

532: Now mode TableName is auto generated if not specified (shouldn't matter just in case).
632: Fix -DataTable "" to use LoadFromDataTable with style (auto generated name)
820: DataTable + TableStyle without TableName corruption fix. Also simplified even more.
822: Change back to "-TableName $TableName" as cange broke test:
Export-Excel.Tests.ps1
617: Undo change test was correct.
This commit is contained in:
ili101
2019-11-17 19:58:14 +02:00
parent 07b36e5e56
commit 43927ca078
2 changed files with 7 additions and 9 deletions

View File

@@ -614,7 +614,7 @@ Describe ExportExcel {
$dataWs = $Excel.Workbook.Worksheets["NoOffset"]
it "Created a new sheet and auto-extended a table and explicitly extended named ranges " {
$dataWs.Tables["ProcTab"].Address.Address | Should be "A1:E11"
$dataWs.Tables["ProcTab"].Address.Address | Should be "A1:E21"
$dataWs.Names["CPU"].Rows | Should be 20
$dataWs.Names["CPU"].Columns | Should be 1
}