Skip to content

Commit 441802b

Browse files
author
petru
committed
tst: Refactor Mock-EnvironmentVariable.Tests.ps1
1 parent c5c9f9e commit 441802b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/PesterExtensions/Public/Mock-EnvironmentVariable.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ Describe 'Should throw' -ForEach @(
317317
-Value $MockedValue {
318318
throw 'Some exception here and there'
319319
}
320-
} | Should -Throw
320+
} | Should -Throw -ExpectedMessage 'Some exception here and there'
321321
[Environment]::GetEnvironmentVariable($environmentVariableName) | Should -Be $InitialValue
322322
}
323323
AfterAll {

0 commit comments

Comments
 (0)