Skip to content

Commit 0b47f9c

Browse files
committed
test: fixed what-if test
1 parent 818b609 commit 0b47f9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Api/Core/Projects/Projects.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ InModuleScope $ModuleName {
4646
}
4747

4848
It "It provides users with feedback via ShouldProcess when using WhatIf" {
49-
Get-AzDoProject @params -WhatIf -Verbose 4>&1 | Should -BeLike "*Calling Invoke-AzDoRestMethod with {*"
49+
Get-AzDoProject @params -WhatIf -Verbose 4>&1 | Out-String | Should -BeLike "*Calling Invoke-AzDoRestMethod with {*"
5050
}
5151

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

0 commit comments

Comments
 (0)