Skip to content

Commit 818b609

Browse files
committed
test: fixed what-if test
1 parent 3185b3e commit 818b609

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Api/DistributedTask/VariableGroups/Variables.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ InModuleScope $ModuleName {
4242
}
4343

4444
It "It provides users with feedback via ShouldProcess when using WhatIf" {
45-
Get-AzDoVariableGroup -CollectionUri $collectionUri -ProjectName "ProjectTest" -WhatIf -Verbose 4>&1 | Should -BeLike "*Calling Invoke-AzDoRestMethod with {*"
45+
Get-AzDoVariableGroup -CollectionUri $collectionUri -ProjectName "ProjectTest" -WhatIf -Verbose 4>&1 | Out-String | Should -BeLike "*Calling Invoke-AzDoRestMethod with {*"
4646
}
4747

4848
It "Outputs all projects when no value to ProjectName was provided" {

0 commit comments

Comments
 (0)