Skip to content

Commit

Permalink
Update Remove-Context tests to use -ID parameter instead of -Name for…
Browse files Browse the repository at this point in the history
… consistency
  • Loading branch information
MariusStorhaug committed Nov 21, 2024
1 parent a7b9a1f commit c3a4b63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Context.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ Describe 'Context' {
$result | Should -Not -BeNullOrEmpty

Write-Verbose 'Cleanup: Remove the Context'
Remove-Context -Name 'Cake'
Remove-Context -ID 'Cake'
}
}
Context 'Get-ContextSetting' {
Expand Down Expand Up @@ -404,7 +404,7 @@ Describe 'Context' {
$result | Should -BeNullOrEmpty

Write-Verbose 'Cleanup: Remove the Context'
Remove-Context -Name 'Test'
Remove-Context -ID 'Test'
}
It "Remove-ContextSetting -Name 'Test' -Context 'Test55'" {
Write-Verbose 'Test: Remove-ContextSetting'
Expand Down

0 comments on commit c3a4b63

Please sign in to comment.