From e09f2b55635d01735c8ff88e2eac1c2c42ccc847 Mon Sep 17 00:00:00 2001 From: dfinke Date: Sun, 27 May 2018 12:54:44 -0400 Subject: [PATCH] Force install of pester --- DoTests.ps1 | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/DoTests.ps1 b/DoTests.ps1 index bbf2898..3428c46 100644 --- a/DoTests.ps1 +++ b/DoTests.ps1 @@ -1,10 +1,9 @@ -Get-Module -ListAvailable pester | Out-Host +# Get-Module -ListAvailable pester | Out-Host +# return +# if ((Get-Module -ListAvailable pester) -eq $null) { +# Install-Module -Name Pester -Repository PSGallery -Force +# } - -return -if ((Get-Module -ListAvailable pester) -eq $null) { - Install-Module -Name Pester -Repository PSGallery -Force -} - -Invoke-Pester -Script $PSScriptRoot\UnitTests\ \ No newline at end of file +Install-Module -Name Pester -Repository PSGallery -Force +Invoke-Pester -Script $PSScriptRoot\UnitTests \ No newline at end of file