Migrates to Pester5+ tests #59

Merged
OCram85 merged 47 commits from Pester5 into master 2022-07-14 13:37:13 +02:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 5b9cfd83ae - Show all commits

View File

@ -14,10 +14,10 @@ BeforeAll {
Describe "Resolve-Dependency" {
Context "Basic syntax check" {
BeforeAll {
Mock -ModuleName 'PSCredentialStore' Get-ModuleBase {
Mock Get-ModuleBase {
return (Join-Path -Path $PWD -ChildPath '/resources')
}
Mock -ModuleName 'PSCredentialStore' Test-Module {
Mock Test-Module {
return $true
}
}
@ -34,7 +34,7 @@ Describe "Resolve-Dependency" {
Mock Get-ModuleBase {
if ($IsWindows) { return "C:\" }
elseif ($isLinux) { return "/" }
} -ModuleName 'PSCredentialStore'
}
It "Missing dependency file should not cause an error" {
{ Resolve-Dependency -Name 'awesome' } | Should -Not -Throw
}