Skip to content

Commit

Permalink
Fix test in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Nov 19, 2024
1 parent 0ada503 commit 3af0da6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions PwshSpectreConsole.Docs/src/powershell/Mocks.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,8 @@ function Stop-SpectreRecordingMock {
$result += '<span>Hello</span><span> </span><span style="color: #FF0000">world</span>' + "`n"
$result += '</pre>'
return $result
}

function Test-SpectreSixelSupportMock {
return $false
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function Test-SpectreSixelSupport {
Windows Terminal Preview and other terminals support sixel, see https://www.arewesixelyet.com/ for more.
Returns $true if the terminal supports Sixel graphics, otherwise $false.
.EXAMPLE
# **Check if the terminal supports Sixel graphics**
if (Test-SpectreSixelSupport) {
Write-SpectreHost "Sixel graphics are supported :)"
} else {
Expand Down

0 comments on commit 3af0da6

Please sign in to comment.