Commit d387624
authored
🩹 [Patch]: Add pipeline input to
## 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.
Changes to parameter attributes:
*
[`src/functions/public/Auth/Disconnect-GitHubAccount.ps1`](diffhunk://#diff-3774b57dfa8d10fd0436e4abdecba2520b9dc8ae12c39e8b10f3ccb782b40898L45-R45):
Changed the `[Parameter()]` attribute to
`[Parameter(ValueFromPipeline)]` for the `$Context` parameter.
Restructuring of test descriptions:
*
[`tests/GitHub.Tests.ps1`](diffhunk://#diff-0b1d9ba345a583adce874126c13d6edd3f789416bb9c4db5df1e18af3608554cL170-R170):
Replaced `Describe` blocks with `Context` blocks for better organization
and added new contexts for `Rate-Limit`, `Repository`, `Status`, and
`Disconnect` tests.
[[1]](diffhunk://#diff-0b1d9ba345a583adce874126c13d6edd3f789416bb9c4db5df1e18af3608554cL170-R170)
[[2]](diffhunk://#diff-0b1d9ba345a583adce874126c13d6edd3f789416bb9c4db5df1e18af3608554cR191-R272)
Removal of redundant test files:
*
[`tests/GitHub/Get-GitHubRepository.Tests.ps1`](diffhunk://#diff-f0b2049f7b6fdce5eb0ddde9c3f58cfda88f362d6f02ceddc9112355d712fbe3L1-L45):
Removed redundant test file as its tests were consolidated into
`tests/GitHub.Tests.ps1`.
*
[`tests/GitHub/Status/Get-GitHubScheduledMaintenance.Tests.ps1`](diffhunk://#diff-b4ff390053acf09079119ae21340da191055577d8e5d774822972136d168153bL1-L23):
Removed redundant test file as its tests were consolidated into
`tests/GitHub.Tests.ps1`.
*
[`tests/GitHub/Status/Get-GitHubStatus.Tests.ps1`](diffhunk://#diff-7a206609b1f6d29b7de646678566b2e07ada8227d1d113e0ec28159934be442eL1-L17):
Removed redundant test file as its tests were consolidated into
`tests/GitHub.Tests.ps1`.
*
[`tests/GitHub/Status/Get-GitHubStatusComponent.Tests.ps1`](diffhunk://#diff-591e71c140b769a472edc57bddb19fd5e1f5d9992bae625282b198644666a917L1-L9):
Removed redundant test file as its tests were consolidated into
`tests/GitHub.Tests.ps1`.
*
[`tests/GitHub/Status/Get-GitHubStatusIncident.Tests.ps1`](diffhunk://#diff-550aed18013a4bc4ac4b71412efc090fa1b9d821dfc33a1cc51d72ef0beffaf4L1-L17):
Removed redundant test file as its tests were consolidated into
`tests/GitHub.Tests.ps1`.
*
[`tests/Rate-Limit/Get-GitHubRateLimit.Tests.ps1`](diffhunk://#diff-eda17a19352d3fd8eadc53b0a221326decff2a7b496ebf0c2ceb8be687d89262L1-L9):
Removed redundant test file as its tests were consolidated into
`tests/GitHub.Tests.ps1`.
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [ ] 🪲 [Fix]
- [x] 🩹 [Patch]
- [ ] Disconnect-GitHub (#213)1 parent dca1183 commit d387624
File tree
8 files changed
+84
-122
lines changed- src/functions/public/Auth
- tests
- GitHub
- Status
- Rate-Limit
8 files changed
+84
-122
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
191 | 273 | | |
This file was deleted.
Lines changed: 0 additions & 23 deletions
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments