Skip to content

Commit 3185b3e

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

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
@@ -94,7 +94,7 @@ InModuleScope $ModuleName {
9494
}
9595

9696
It "It provides users with feedback via ShouldProcess when using WhatIf" {
97-
New-AzDoProject @params -WhatIf -Verbose 4>&1 | Should -BeLike "*Calling Invoke-AzDoRestMethod with {*"
97+
New-AzDoProject @params -WhatIf -Verbose 4>&1 | Out-String | Should -Match "Calling Invoke-AzDoRestMethod with {"
9898
}
9999

100100
It "Outputs just the matching ProjectName when a single value was supplied" {

0 commit comments

Comments
 (0)