Skip to content

Commit 342dc72

Browse files
committed
Fix test to properly handle output of Get-SqlDscServerPermission command
1 parent 38082f7 commit 342dc72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Unit/Public/Get-SqlDscServerPermission.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Describe 'Get-SqlDscServerPermission' -Tag 'Public' {
242242
}
243243

244244
It 'Should call both Test-SqlDscIsLogin and Test-SqlDscIsRole' {
245-
Get-SqlDscServerPermission -ServerObject $mockServerObject -Name 'TestPrincipal' -ErrorAction 'SilentlyContinue'
245+
$null = Get-SqlDscServerPermission -ServerObject $mockServerObject -Name 'TestPrincipal' -ErrorAction 'SilentlyContinue'
246246

247247
Should -Invoke -CommandName Test-SqlDscIsLogin -ParameterFilter {
248248
$ServerObject.Equals($mockServerObject) -and $Name -eq 'TestPrincipal'

0 commit comments

Comments
 (0)