More pester fixing

This commit is contained in:
jhoneill
2020-11-23 08:56:55 +00:00
parent bb3923aabf
commit c685ad767c
10 changed files with 27812 additions and 647 deletions

View File

@@ -2,7 +2,12 @@
param()
describe "Consistent passing of ranges." {
BeforeAll { $path = "TestDrive:\test.xlsx" }
BeforeAll {
$path = "TestDrive:\test.xlsx"
if (-not (Get-command Get-Service -ErrorAction SilentlyContinue)) {
Function Get-Service {Import-Clixml $PSScriptRoot\Mockservices.xml}
}
}
Context "Conditional Formatting" {
it "accepts named ranges, cells['name'], worksheet + Name, worksheet + column " {
Remove-Item -path $path -ErrorAction SilentlyContinue