Skip to content

Commit

Permalink
Add Pester tests for Remove-GitBranch tab completion
Browse files Browse the repository at this point in the history
  • Loading branch information
rkeithhill committed Apr 30, 2019
1 parent 491d621 commit 547f0a9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/TabExpansion.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,17 @@ Describe 'TabExpansion Tests' {
}
}

Context 'Remove-GitBranch TabExpansion Tests' {
It 'Tab completes branches by positional parameter' {
$result = & $module GitTabExpansionInternal 'Remove-GitBranch mas'
$result | Should BeExactly 'master'
}
It 'Tab completes branches by named parameter' {
$result = & $module GitTabExpansionInternal 'Remove-GitBranch -IncludeUnmerged -WhatIf -Name mas'
$result | Should BeExactly 'master'
}
}

Context 'Vsts' {
BeforeEach {
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseDeclaredVarsMoreThanAssigments', '')]
Expand Down

0 comments on commit 547f0a9

Please sign in to comment.