File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
test/powershell/Host/TabCompletion Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,12 @@ Describe "TabCompletion" -Tags CI {
91
91
}
92
92
93
93
It ' Should complete "Get-Process -Id " with Id and name in tooltip' {
94
+ Set-StrictMode - Version latest
94
95
$cmd = ' Get-Process -Id '
95
- $res = TabExpansion2 - inputScript $cmd - cursorColumn $cmd.Length
96
+ [ System.Management.Automation.CommandCompletion ] $res = TabExpansion2 - inputScript $cmd - cursorColumn $cmd.Length
96
97
$res.CompletionMatches [0 ].CompletionText -match ' ^\d+$' | Should be true
97
- $res.CompletionMatches [0 ].ToolTip -match ' ^\w' | Should be true
98
+ $res.CompletionMatches [0 ].ListItemText -match ' ^\d+ -' | Should be true
99
+ $res.CompletionMatches [0 ].ToolTip -match ' ^\d+ -' | Should be true
98
100
}
99
101
100
102
It ' Should complete keyword' - skip {
You can’t perform that action at this time.
0 commit comments