Skip to content

Commit 89f30c2

Browse files
committed
Bump build dependencies and add Pester 5.2 compat
1 parent dab36c8 commit 89f30c2

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

requirements.psd1

100644100755
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
BuildHelpers = '2.0.16'
77
Pester = @{
8-
MinimumVersion = '5.1.1'
8+
MinimumVersion = '5.2.2'
99
Parameters = @{
1010
SkipPublisherCheck = $true
1111
}
1212
}
1313
psake = '4.9.0'
14-
PSScriptAnalyzer = '1.19.0'
15-
InvokeBuild = '5.5.3'
16-
platyPS = '0.14.1'
14+
PSScriptAnalyzer = '1.19.1'
15+
InvokeBuild = '5.8.1'
16+
platyPS = '0.14.2'
1717
}

tests/Help.tests.ps1

100644100755
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Taken with love from @juneb_get_help (https://raw.githubusercontent.com/juneb/PesterTDD/master/Module.Help.Tests.ps1)
22

33
BeforeDiscovery {
4-
5-
function script:FilterOutCommonParams {
4+
function global:FilterOutCommonParams {
65
param ($Params)
76
$commonParams = @(
87
'Debug', 'ErrorAction', 'ErrorVariable', 'InformationAction', 'InformationVariable',
@@ -35,13 +34,17 @@ BeforeDiscovery {
3534
## To test, restart session.
3635
}
3736

37+
AfterAll {
38+
Remove-Item Function:/FilterOutCommonParams
39+
}
40+
3841
Describe "Test help for <_.Name>" -ForEach $commands {
3942

4043
BeforeDiscovery {
4144
# Get command help, parameters, and links
4245
$command = $_
4346
$commandHelp = Get-Help $command.Name -ErrorAction SilentlyContinue
44-
$commandParameters = script:FilterOutCommonParams -Params $command.ParameterSets.Parameters
47+
$commandParameters = global:FilterOutCommonParams -Params $command.ParameterSets.Parameters
4548
$commandParameterNames = $commandParameters.Name
4649
$helpLinks = $commandHelp.relatedLinks.navigationLink.uri
4750
}
@@ -51,9 +54,9 @@ Describe "Test help for <_.Name>" -ForEach $commands {
5154
$command = $_
5255
$commandName = $_.Name
5356
$commandHelp = Get-Help $command.Name -ErrorAction SilentlyContinue
54-
$commandParameters = script:FilterOutCommonParams -Params $command.ParameterSets.Parameters
57+
$commandParameters = global:FilterOutCommonParams -Params $command.ParameterSets.Parameters
5558
$commandParameterNames = $commandParameters.Name
56-
$helpParameters = script:FilterOutCommonParams -Params $commandHelp.Parameters.Parameter
59+
$helpParameters = global:FilterOutCommonParams -Params $commandHelp.Parameters.Parameter
5760
$helpParameterNames = $helpParameters.Name
5861
}
5962

0 commit comments

Comments
 (0)