diff options
Diffstat (limited to 'Tests/Exfiltration.tests.ps1')
-rw-r--r-- | Tests/Exfiltration.tests.ps1 | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Tests/Exfiltration.tests.ps1 b/Tests/Exfiltration.tests.ps1 index 064ebfe..e4f60d5 100644 --- a/Tests/Exfiltration.tests.ps1 +++ b/Tests/Exfiltration.tests.ps1 @@ -25,10 +25,9 @@ Describe 'Get-Keystrokes' { $KeyObjects = Get-Content -Path "$($env:TEMP)\key.log" | ConvertFrom-Csv - It 'Should log all keystrokes' { - $Keys = $KeyObjects | % { $_.TypedKey } - $String = -join $Keys - $String | Should Match 'Pester' + It 'Should log keystrokes' { + $FileLength = (Get-Item "$($env:TEMP)\key.log").Length + $FileLength | Should BeGreaterThan 14 } It 'Should get foreground window title' { @@ -52,4 +51,4 @@ Describe 'Get-Keystrokes' { } Remove-Item -Force "$($env:TEMP)\key.log" -}
\ No newline at end of file +} |