🩹 [Patch]: Add pipeline input to Disconnect-GitHub
#213
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request includes changes to improve the structure and organization of tests. The most important changes include adding support for pipeline input of contexts to
Disconnect-GitHubAccount, restructuring test descriptions for better organization, and removing redundant test files.Get-GitHubContext -ListAvailable | <filter> | Disconnect-GitHub#212Changes to parameter attributes:
src/functions/public/Auth/Disconnect-GitHubAccount.ps1: Changed the[Parameter()]attribute to[Parameter(ValueFromPipeline)]for the$Contextparameter.Restructuring of test descriptions:
tests/GitHub.Tests.ps1: ReplacedDescribeblocks withContextblocks for better organization and added new contexts forRate-Limit,Repository,Status, andDisconnecttests. [1] [2]Removal of redundant test files:
tests/GitHub/Get-GitHubRepository.Tests.ps1: Removed redundant test file as its tests were consolidated intotests/GitHub.Tests.ps1.tests/GitHub/Status/Get-GitHubScheduledMaintenance.Tests.ps1: Removed redundant test file as its tests were consolidated intotests/GitHub.Tests.ps1.tests/GitHub/Status/Get-GitHubStatus.Tests.ps1: Removed redundant test file as its tests were consolidated intotests/GitHub.Tests.ps1.tests/GitHub/Status/Get-GitHubStatusComponent.Tests.ps1: Removed redundant test file as its tests were consolidated intotests/GitHub.Tests.ps1.tests/GitHub/Status/Get-GitHubStatusIncident.Tests.ps1: Removed redundant test file as its tests were consolidated intotests/GitHub.Tests.ps1.tests/Rate-Limit/Get-GitHubRateLimit.Tests.ps1: Removed redundant test file as its tests were consolidated intotests/GitHub.Tests.ps1.Type of change
Checklist