Skip to content

Commit 234fae4

Browse files
committed
Fix grouping logic
1 parent cf97e0b commit 234fae4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Rules/UseCompatibleCommands.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ Describe 'UseCompatibleCommands' {
327327
'
328328

329329
$diagnostics.Count | Should -Be 2
330-
$diagnosticGroups = Group-Object $diagnostics -Property Command
330+
$diagnosticGroups = Group-Object -InputObject $diagnostics -Property Command
331331
foreach ($group in $diagnosticGroups)
332332
{
333333
switch ($group.Name)

Tests/Rules/UseCompatibleTypes.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Describe 'UseCompatibleTypes' {
193193
'
194194

195195
$diagnostics.Count | Should -Be 2
196-
$diagnosticGroups = Group-Object $diagnostics -Property Type
196+
$diagnosticGroups = Group-Object -InputObject $diagnostics -Property Type
197197
foreach ($group in $diagnosticGroups)
198198
{
199199
switch ($group.Name)

0 commit comments

Comments
 (0)