show registered snapins on appveyor build

This commit is contained in:
2018-03-13 14:16:46 +01:00
parent d8d5757036
commit 1a6a861ad1
2 changed files with 3 additions and 2 deletions

View File

@ -32,7 +32,8 @@ Describe "Test-ModuleName" {
}
Context "Working with PSSnapins" {
It "Loading first PSSnaping should not throw " {
$Snap = Get-PSSnapin -Registered | Select-Object -First 1
$Snap = Get-PSSnapin -Registered
$Snap
{ $loaded = Test-Module -Name $Snap.Name -Type PSSnapin } | Should -Not -Throw
Remove-PSSnapin -Name $Snap.Name
}