mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Add a simple test for Get-WinEvent on windows (Core + Full)
This commit is contained in:
1 parent
c1d1b52869
commit
777ba09bce
2 files changed
+21
No files matched your search
@@ -0,0 +1,7 @@
|
||||
Describe 'Get-WinEvent' {
|
||||
|
||||
# Get-WinEvent works only on windows
|
||||
It 'can query a System log' -Skip:(-not $IsWindows) {
|
||||
Get-WinEvent -LogName System -MaxEvents 1 | Should Not Be $null
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user