Skip to content

Commit 23183d2

Browse files
Jos KoelewijnJos Koelewijn
Jos Koelewijn
authored and
Jos Koelewijn
committed
remove unnecessary boilerplate from test
1 parent adbeff0 commit 23183d2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Tests/Rules/AvoidUnInitializedVarsInNewRunspaces.tests.ps1

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
$directory = Split-Path -Parent $MyInvocation.MyCommand.Path
2-
$testRootDirectory = Split-Path -Parent $directory
3-
4-
Import-Module (Join-Path $testRootDirectory "PSScriptAnalyzerTestHelper.psm1")
5-
6-
$ruleName = "PSAvoidUnInitializedVarsInNewRunspaces"
7-
81
$settings = @{
9-
IncludeRules = @($ruleName)
2+
IncludeRules = "PSAvoidUnInitializedVarsInNewRunspaces"
103
}
114

125
Describe "AvoidUnInitializedVarsInNewRunspaces" {

0 commit comments

Comments
 (0)