From 1e90165a56ff6072b4250d7a68150eb5f9c06eec Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Tue, 26 May 2020 10:24:12 -0400 Subject: [PATCH] Add source URL to test fixture script (#9296) --- .../test-fixtures/scripts/set_version_latest.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/provisioner/powershell/test-fixtures/scripts/set_version_latest.ps1 b/provisioner/powershell/test-fixtures/scripts/set_version_latest.ps1 index 4d05fd5f7..e6483b2fa 100644 --- a/provisioner/powershell/test-fixtures/scripts/set_version_latest.ps1 +++ b/provisioner/powershell/test-fixtures/scripts/set_version_latest.ps1 @@ -1,13 +1,13 @@ +# Test fixture is a modified version of the example found at +# https://www.powershellmagazine.com/2012/10/23/pstip-set-strictmode-why-should-you-care/ + Set-StrictMode -Version Latest $ErrorActionPreference = "Stop" $myNumbersCollection = 1..5 - -if($myNumbersCollection -contains 3) -{ +if($myNumbersCollection -contains 3) { "collection contains 3" } -else -{ +else { "collection doesn't contain 3" }