diff --git a/.github/workflows/unittests.yaml b/.github/workflows/unittests.yaml index 6e64cdf2..bc2d8827 100644 --- a/.github/workflows/unittests.yaml +++ b/.github/workflows/unittests.yaml @@ -27,7 +27,7 @@ jobs: - name: Install Pester run: | Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process - Install-Module -Name Pester -Force -AllowClobber + Install-Module -Name Pester -Force -SkipPublisherCheck -AllowClobber shell: pwsh - name: Run Pester tests diff --git a/pester/functions.Tests.ps1 b/pester/functions.Tests.ps1 index 1173ed04..6606d5c7 100644 --- a/pester/functions.Tests.ps1 +++ b/pester/functions.Tests.ps1 @@ -37,8 +37,8 @@ Describe "Functions"{ basename = $($psitem.BaseName) fullname = $psitem.FullName } { - Get-ChildItem function:\ -Name $basename | Should -Not -BeNullOrEmpty + Get-ChildItem function:\$basename | Should -Not -BeNullOrEmpty } } } -} +} \ No newline at end of file