Skip to content

Commit

Permalink
Update test to use Get-GitHubContext with -ListAvailable for accurate…
Browse files Browse the repository at this point in the history
… context count
  • Loading branch information
MariusStorhaug committed Nov 24, 2024
1 parent 7e5ca69 commit 7f9ab58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/GitHub.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

It 'Can reconfigure an existing context to be fine-grained PAT token' {
{ Connect-GitHubAccount -Token $env:TEST_FG_PAT } | Should -Not -Throw
(Get-GitHubContext).Count | Should -Be 2
Write-Verbose (Get-GitHubContext | Out-String) -Verbose
(Get-GitHubContext -ListAvailable).Count | Should -Be 2
Write-Verbose (Get-GitHubContext -ListAvailable | Out-String) -Verbose
}

It 'Can be called with a GitHub App' {
Expand Down

0 comments on commit 7f9ab58

Please sign in to comment.