Created
April 5, 2018 20:50
-
-
Save bentaylorwork/cae6848d16676c472c4d96f0aed479c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$vstsTasks = @( | |
"##vso[task.setvariable variable=foo]bar" | |
"##vso[task.setvariable variable=for ]bar" | |
"##vso[task.setvariable variable=for] bar" | |
"##vso[ task.setvariable variable=for]bar" | |
"##vso [task.setvariable variable=for]bar" | |
) | |
Describe "VSTS" { | |
Context "Fake Lint" { | |
foreach($vstsTask in $vstsTasks) { | |
It "Variable Correct ']'" { | |
($vstsTask -match "(]\s)|(\s])|(\[\s)|(\s\[)") | Should -be $false | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment