Skip to content

Commit

Permalink
fixes MethodsAndPractices#369 unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianSchuetze committed Aug 1, 2021
1 parent d4bd3ba commit c30eb70
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Tests/function/tests/Add-VSTeamProject.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ Describe 'VSTeamProject' {
Mock _getApiVersion { return '1.0-unitTests' }
Mock _callApi { Open-SampleFile 'Get-VSTeamProcess.json' } -ParameterFilter { $area -eq 'work' -and $resource -eq 'processes' }

# Get-VSTeamProject for cache
# Get-VSTeamProject for cache
Mock Invoke-RestMethod { return @() } -ParameterFilter {
$Uri -like "*`$top=100*" -and
$Uri -like "*stateFilter=WellFormed*"
}
}
Expand All @@ -34,7 +33,7 @@ Describe 'VSTeamProject' {
}

# Track Progress
Mock Invoke-RestMethod {
Mock Invoke-RestMethod {
# This $i is in the module. Because we use InModuleScope
# we can see it
if ($i -gt 9) {
Expand Down

0 comments on commit c30eb70

Please sign in to comment.