Skip to content

Commit 2b3fe76

Browse files
committed
Fixed unit tests
1 parent fcdc92c commit 2b3fe76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Unit/Get-FabricCapacityState.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Describe "Get-FabricCapacityState" -Tag "UnitTests" {
3535
BeforeAll {
3636
Mock -CommandName Confirm-TokenState -MockWith { }
3737
Mock -CommandName Write-Message -MockWith { }
38-
Mock -CommandName Get-PSFConfigValue -MockWith {
38+
Mock -CommandName Get-PSFConfigValue -ParameterFilter { $FullName -eq 'FabricTools.AzureApi.BaseUrl' } -MockWith {
3939
return 'https://management.azure.com'
4040
}
4141
Mock -CommandName Invoke-RestMethod -MockWith {
@@ -73,7 +73,7 @@ Describe "Get-FabricCapacityState" -Tag "UnitTests" {
7373
BeforeAll {
7474
Mock -CommandName Confirm-TokenState -MockWith { }
7575
Mock -CommandName Write-Message -MockWith { }
76-
Mock -CommandName Get-PSFConfigValue -MockWith {
76+
Mock -CommandName Get-PSFConfigValue -ParameterFilter { $FullName -eq 'FabricTools.AzureApi.BaseUrl' } -MockWith {
7777
return 'https://management.azure.com'
7878
}
7979
Mock -CommandName Invoke-RestMethod -MockWith {

0 commit comments

Comments
 (0)