From b763b4364fbd9e03a9f40938cf177e4a6f1cf59e Mon Sep 17 00:00:00 2001 From: sethvs Date: Sun, 8 Apr 2018 13:42:47 +0300 Subject: [PATCH 1/2] Fix formatting. --- .../Microsoft.PowerShell.Management/Clear-Item.Tests.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-Item.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-Item.Tests.ps1 index 5bec6948ded..f97c0911f2b 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-Item.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-Item.Tests.ps1 @@ -4,10 +4,11 @@ Describe "Clear-Item tests" -Tag "CI" { BeforeAll { ${myClearItemVariableTest} = "Value is here" } + It "Clear-Item can clear an item" { $myClearItemVariableTest | Should -BeExactly "Value is here" - Clear-Item variable:myClearItemVariableTest - test-path variable:myClearItemVariableTest | Should -BeTrue + Clear-Item -Path variable:myClearItemVariableTest + Test-Path -Path variable:myClearItemVariableTest | Should -BeTrue $myClearItemVariableTest | Should -BeNullOrEmpty } } From 0640b7fb7c0a409315af392d3c01cdbbca1517d6 Mon Sep 17 00:00:00 2001 From: sethvs Date: Sun, 8 Apr 2018 14:55:50 +0300 Subject: [PATCH 2/2] Fix Formatting.