From c3a4b635a6ead426f812bf05d62d4167ab82654f Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 21 Nov 2024 20:08:24 +0100 Subject: [PATCH] Update Remove-Context tests to use -ID parameter instead of -Name for consistency --- tests/Context.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Context.Tests.ps1 b/tests/Context.Tests.ps1 index a8c831e..fd29147 100644 --- a/tests/Context.Tests.ps1 +++ b/tests/Context.Tests.ps1 @@ -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' { @@ -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'