mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Add trailing line number to filename for ConciseView (#11391)
This commit is contained in:
1 parent
384a7ba2d7
commit
563b1cba83
2 files changed
+8
-2
No files matched your search
@@ -32,7 +32,7 @@ Describe 'Tests for $ErrorView' -Tag CI {
|
||||
$testScriptPath = Join-Path -Path $TestDrive -ChildPath 'test.ps1'
|
||||
Set-Content -Path $testScriptPath -Value $testScript
|
||||
$e = { & $testScriptPath } | Should -Throw -ErrorId 'UnexpectedToken' -PassThru
|
||||
$e | Out-String | Should -BeLike "*$testScriptPath*"
|
||||
$e | Out-String | Should -BeLike "*${testScriptPath}:4*"
|
||||
# validate line number is shown
|
||||
$e | Out-String | Should -BeLike '* 4 *'
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user