Move Compare-WorkSheet tests into __tests__ fixed bug where font not set in difference sheet

This commit is contained in:
jhoneill
2018-07-04 16:47:15 +01:00
parent d7e4a0ec2f
commit 512812d774
2 changed files with 11 additions and 4 deletions

3
.gitignore vendored
View File

@@ -42,6 +42,7 @@ Network Trash Folder
Temporary Items Temporary Items
.apdisk .apdisk
testExport.xlsx testExport.xlsx
test.xlsx
test.ps1 test.ps1
testPwd.xlsx testPwd.xlsx
test.csv test.csv
@@ -55,3 +56,5 @@ test.xlsx
testCCFMT.ps1 testCCFMT.ps1
testHide.ps1 testHide.ps1
ImportExcel.zip ImportExcel.zip
.vscode/launch.json

View File

@@ -1,3 +1,9 @@
#Requires -Modules Pester
# $here = Split-Path -Parent $MyInvocation.MyCommand.Path
# Import-Module $here -Force -Verbose
Import-Module $PSScriptRoot\..\ImportExcel.psd1 -Force
Describe "Compare Worksheet" { Describe "Compare Worksheet" {
Remove-Item -Path "$env:temp\server*.xlsx" Remove-Item -Path "$env:temp\server*.xlsx"
@@ -28,8 +34,7 @@ Describe "Compare Worksheet" {
} }
it "Found the data row with a changed property " { it "Found the data row with a changed property " {
$comp | should not beNullOrEmpty $comp | should not beNullOrEmpty
$comp[0]._Side | should be '=>' $comp[0]._Side | should not be $comp[1]._Side
$comp[1]._Side | should be '<='
$comp[0]._Row | should be 4 $comp[0]._Row | should be 4
$comp[1]._Row | should be 4 $comp[1]._Row | should be 4
$comp[1].Name | should be $comp[0].Name $comp[1].Name | should be $comp[0].Name
@@ -134,8 +139,7 @@ Describe "Compare Worksheet" {
} }
it "Found the data row with a changed property " { it "Found the data row with a changed property " {
$comp | should not beNullOrEmpty $comp | should not beNullOrEmpty
$comp[0]._Side | should be '=>' $comp[0]._Side | should not be $comp[1]._Side
$comp[1]._Side | should be '<='
$comp[0]._Row | should be 4 $comp[0]._Row | should be 4
$comp[1]._Row | should be 4 $comp[1]._Row | should be 4
$comp[1].ServiceName | should be $comp[0].ServiceName $comp[1].ServiceName | should be $comp[0].ServiceName