Skip to content

Commit 9074808

Browse files
committed
Add tests for list item text with New-ItemProperty command
1 parent 9b49aae commit 9074808

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/powershell/Host/TabCompletion/TabCompletion.Tests.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,6 +1368,12 @@ param([ValidatePattern(
13681368
$res = TabExpansion2 -inputScript $TextInput -cursorColumn $TextInput.Length
13691369
$completionText = $res.CompletionMatches.CompletionText
13701370
$completionText -join ' ' | Should -BeExactly $ExpectedPropertyTypes
1371+
1372+
foreach ($match in $res.CompletionMatches) {
1373+
$completionText = $match.CompletionText.Replace("""", "").Replace("'", "")
1374+
$listItemText = $match.ListItemText
1375+
$completionText | Should -BeExactly $listItemText
1376+
}
13711377
}
13721378

13731379
It "Test fallback to provider of current location if no path specified" -Skip:(!$IsWindows) {

0 commit comments

Comments
 (0)