Skip to content

Commit 4947e32

Browse files
committed
Refactor test for Assert-SetupActionProperties to simplify syntax and improve readability
1 parent b63ac0d commit 4947e32

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/Unit/Private/Assert-SetupActionProperties.Tests.ps1

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -608,12 +608,10 @@ Describe 'Assert-SetupActionProperties' -Tag 'Private' {
608608

609609
It 'Should not throw an exception' {
610610
InModuleScope -ScriptBlock {
611-
{
612-
Assert-SetupActionProperties -Property @{
613-
MediaPath = $TestDrive
614-
AllowDqRemoval = $true
615-
} -SetupAction 'Upgrade'
616-
} | Should -Not -Throw
611+
Assert-SetupActionProperties -Property @{
612+
MediaPath = $TestDrive
613+
AllowDqRemoval = $true
614+
} -SetupAction 'Upgrade'
617615
}
618616
}
619617
}

0 commit comments

Comments
 (0)