Skip to content

Commit e56de11

Browse files
🩹 [Patch]: Standardize parameter declaration to lowercase 'param' in test scripts
1 parent 755bd74 commit e56de11

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

‎scripts/tests/Module/PSModule/PSModule.Tests.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Justification = 'Log outputs to GitHub Actions logs.'
88
)]
99
[CmdLetBinding()]
10-
Param(
10+
param(
1111
[Parameter(Mandatory)]
1212
[string] $Path
1313
)

‎scripts/tests/SourceCode/PSModule/PSModule.Tests.ps1‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Justification = 'Logging to Github Actions.'
1616
)]
1717
[CmdLetBinding()]
18-
Param(
18+
param(
1919
# The path to the 'src' folder of the repo.
2020
[Parameter(Mandatory)]
2121
[string] $Path,
@@ -41,7 +41,7 @@ BeforeAll {
4141
Write-Host '::endgroup::'
4242
$privateFunctionsPath = Join-Path -Path $functionsPath -ChildPath 'private'
4343
$privateFunctionFiles = (Test-Path -Path $privateFunctionsPath) ?
44-
(Get-ChildItem -Path $privateFunctionsPath -File -Filter '*.ps1' -Recurse) : $null
44+
(Get-ChildItem -Path $privateFunctionsPath -File -Filter '*.ps1' -Recurse) : $null
4545
Write-Host "::group:: - Private [$($privateFunctionFiles.Count)]"
4646
$privateFunctionFiles | ForEach-Object {
4747
Write-Host " - $($_.FullName)"
@@ -63,15 +63,15 @@ BeforeAll {
6363
Write-Host '::endgroup::'
6464
$privateVariablesPath = Join-Path -Path $variablesPath -ChildPath 'private'
6565
$privateVariableFiles = (Test-Path -Path $privateVariablesPath) ?
66-
(Get-ChildItem -Path $privateVariablesPath -File -Filter '*.ps1' -Recurse) : $null
66+
(Get-ChildItem -Path $privateVariablesPath -File -Filter '*.ps1' -Recurse) : $null
6767
Write-Host "::group:: - Private [$($privateVariableFiles.Count)]"
6868
$privateVariableFiles | ForEach-Object {
6969
Write-Host " - $($_.FullName)"
7070
}
7171
Write-Host '::endgroup::'
7272
$publicVariablesPath = Join-Path -Path $variablesPath -ChildPath 'public'
7373
$publicVariableFiles = (Test-Path -Path $publicVariablesPath) ?
74-
(Get-ChildItem -Path $publicVariablesPath -File -Filter '*.ps1' -Recurse) : $null
74+
(Get-ChildItem -Path $publicVariablesPath -File -Filter '*.ps1' -Recurse) : $null
7575
Write-Host "::group:: - Public [$($publicVariableFiles.Count)]"
7676
$publicVariableFiles | ForEach-Object {
7777
Write-Host " - $($_.FullName)"
@@ -86,15 +86,15 @@ BeforeAll {
8686
Write-Host '::endgroup::'
8787
$privateClassPath = Join-Path -Path $classPath -ChildPath 'private'
8888
$privateClassFiles = (Test-Path -Path $privateClassPath) ?
89-
(Get-ChildItem -Path $privateClassPath -File -Filter '*.ps1' -Recurse) : $null
89+
(Get-ChildItem -Path $privateClassPath -File -Filter '*.ps1' -Recurse) : $null
9090
Write-Host "::group:: - Private [$($privateClassFiles.Count)]"
9191
$privateClassFiles | ForEach-Object {
9292
Write-Host " - $($_.FullName)"
9393
}
9494
Write-Host '::endgroup::'
9595
$publicClassPath = Join-Path -Path $classPath -ChildPath 'public'
9696
$publicClassFiles = (Test-Path -Path $publicClassPath) ?
97-
(Get-ChildItem -Path $publicClassPath -File -Filter '*.ps1' -Recurse) : $null
97+
(Get-ChildItem -Path $publicClassPath -File -Filter '*.ps1' -Recurse) : $null
9898
Write-Host "::group:: - Public [$($publicClassFiles.Count)]"
9999
$publicClassFiles | ForEach-Object {
100100
Write-Host " - $($_.FullName)"

‎tests/outputTestRepo/tests/MyTests/PSModuleTest.Tests.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[CmdletBinding()]
2-
Param(
2+
param(
33
# Path to the module to test.
44
[Parameter()]
55
[string] $Path

‎tests/srcTestRepo/tests/PSModuleTest.Tests.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[CmdletBinding()]
2-
Param(
2+
param(
33
# Path to the module to test.
44
[Parameter()]
55
[string] $Path

‎tests/srcWithManifestTestRepo/tests/MyTests/PSModuleTest.Tests.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[CmdletBinding()]
2-
Param(
2+
param(
33
# Path to the module to test.
44
[Parameter()]
55
[string] $Path

0 commit comments

Comments
 (0)