From 1cfc07260f35fd9ea2268b840eac67ab32289684 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Fri, 19 Jul 2019 14:22:39 -0400 Subject: [PATCH] Remove unused BeforAll Block --- Tests/Public/Disconnect-ZertoServer.Tests.ps1 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Tests/Public/Disconnect-ZertoServer.Tests.ps1 b/Tests/Public/Disconnect-ZertoServer.Tests.ps1 index 4fe92ac..873fab2 100644 --- a/Tests/Public/Disconnect-ZertoServer.Tests.ps1 +++ b/Tests/Public/Disconnect-ZertoServer.Tests.ps1 @@ -3,13 +3,10 @@ $global:here = (Split-Path -Parent $MyInvocation.MyCommand.Path) $global:function = ((Split-Path -leaf $MyInvocation.MyCommand.Path).Split('.'))[0] Describe $global:function -Tag 'Unit', 'Source', 'Built' { - BeforeAll { - $script:ScriptBlock = (Get-Command $global:function).ScriptBlock - } Context "$($global:function)::Parameter Unit Tests" { - it "Does not take any parameters" { - (get-command disconnect-zertoserver).parameters.count | Should -BeExactly 11 + It "Does not take any parameters" { + (Get-Command disconnect-zertoserver).parameters.count | Should -BeExactly 11 } }