From b91486dccbb331f6a4d241a5ea323001e04b14ac Mon Sep 17 00:00:00 2001 From: YusufKhalifadev Date: Fri, 29 Mar 2024 14:05:23 +0200 Subject: [PATCH] fixing typos in unittesting --- .github/workflows/unittests.yaml | 2 +- pester/functions.Tests.ps1 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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