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

@@ -1,5 +1,4 @@

Describe "Join Worksheet part 1" {
Describe "Join Worksheet part 1" {
BeforeAll {
$data1 = ConvertFrom-Csv -InputObject @"
ID,Product,Quantity,Price,Total
@@ -94,6 +93,14 @@ Describe "Join Worksheet part 1" {
}
Describe "Join Worksheet part 2" {
BeforeAll {
if (-not (Get-command Get-CimInstance -ErrorAction SilentlyContinue)) {
Function Get-CimInstance {
param ($classname , $namespace)
Import-Clixml "$PSScriptRoot\$classname.xml"
}
}
}
BeforeEach {
$path = "TestDrive:\Test.xlsx"
Remove-item -Path $path -ErrorAction SilentlyContinue