Instantly share code, notes, and snippets.

Embed
What would you like to do?
$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