Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Commit aae1f6d

Browse files
committed
Fix test for finding Pester tests in own module
1 parent 209bbef commit aae1f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Unit/Get-OperationValidation.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Describe 'Get-OperationValidation' {
2323

2424
Context "Finds proper tests" {
2525
It "Can find its own tests" {
26-
$tests = Get-OperationValidation -Modulename OperationValidation
26+
$tests = Get-OperationValidation -Path (Split-Path -Path $env:BHModulePath -Parent)
2727

2828
$tests.Count | Should be 2
2929
$tests.File -eq "PSGallery.Simple.Tests.ps1" | Should be "PSGallery.Simple.Tests.ps1"

0 commit comments

Comments
 (0)