Skip to content

Commit 025c8de

Browse files
author
Kapil Borle
committed
Sets invocation directory in the UseToExportFieldsInManifest rule test file.
1 parent 036f164 commit 025c8de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/Rules/UseToExportFieldsInManifest.tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Import-Module PSScriptAnalyzer
2-
$testManifestPath = "TestManifest"
2+
$directory = Split-Path -Parent $MyInvocation.MyCommand.Path
3+
$testManifestPath = Join-Path $directory "TestManifest"
34
$testManifestBadFunctionsWildcardPath = "ManifestBadFunctionsWildcard.psd1"
45
$testManifestBadFunctionsNullPath = "ManifestBadFunctionsNull.psd1"
56
$testManifestBadCmdletsWildcardPath = "ManifestBadCmdletsWildcard.psd1"

0 commit comments

Comments
 (0)