mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Move Compare-WorkSheet tests into __tests__ fixed bug where font not set in difference sheet
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -42,6 +42,7 @@ Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
testExport.xlsx
|
||||
test.xlsx
|
||||
test.ps1
|
||||
testPwd.xlsx
|
||||
test.csv
|
||||
@@ -55,3 +56,5 @@ test.xlsx
|
||||
testCCFMT.ps1
|
||||
testHide.ps1
|
||||
ImportExcel.zip
|
||||
.vscode/launch.json
|
||||
|
||||
|
||||
@@ -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" {
|
||||
|
||||
Remove-Item -Path "$env:temp\server*.xlsx"
|
||||
@@ -28,8 +34,7 @@ Describe "Compare Worksheet" {
|
||||
}
|
||||
it "Found the data row with a changed property " {
|
||||
$comp | should not beNullOrEmpty
|
||||
$comp[0]._Side | should be '=>'
|
||||
$comp[1]._Side | should be '<='
|
||||
$comp[0]._Side | should not be $comp[1]._Side
|
||||
$comp[0]._Row | should be 4
|
||||
$comp[1]._Row | should be 4
|
||||
$comp[1].Name | should be $comp[0].Name
|
||||
@@ -134,8 +139,7 @@ Describe "Compare Worksheet" {
|
||||
}
|
||||
it "Found the data row with a changed property " {
|
||||
$comp | should not beNullOrEmpty
|
||||
$comp[0]._Side | should be '=>'
|
||||
$comp[1]._Side | should be '<='
|
||||
$comp[0]._Side | should not be $comp[1]._Side
|
||||
$comp[0]._Row | should be 4
|
||||
$comp[1]._Row | should be 4
|
||||
$comp[1].ServiceName | should be $comp[0].ServiceName
|
||||
Reference in New Issue
Block a user