We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e548a7 commit e65eb29Copy full SHA for e65eb29
1 file changed
tests/CoverageGaps.Cli.Tests.ps1
@@ -852,6 +852,15 @@ Describe 'Coverage gaps for CLI and installed-version internals' {
852
}
853
854
855
+ It 'Get-NovaCliConsoleReadKeyReader returns the default console read delegate' {
856
+ InModuleScope $script:moduleName {
857
+ $reader = Get-NovaCliConsoleReadKeyReader
858
+
859
+ $reader | Should -BeOfType 'scriptblock'
860
+ ($reader.ToString()).Trim() | Should -Be '[Console]::ReadKey($true)'
861
+ }
862
863
864
It 'Invoke-NovaCliConsoleReadKey invokes the shared console reader delegate' {
865
InModuleScope $script:moduleName {
866
Mock Get-NovaCliConsoleReadKeyReader {
0 commit comments