Skip to content

Commit e3f5e58

Browse files
authored
Get-SqlDscSetupLog: Update test assertion (#2316)
1 parent 36e0b3e commit e3f5e58

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
110110
to correctly reflect that `ConvertFrom-SqlDscDatabasePermission` test does not
111111
require database instance connectivity
112112
[issue #2284](https://github.com/dsccommunity/SqlServerDsc/issues/2284).
113+
- Updated unit test assertion in `Get-SqlDscSetupLog.Tests.ps1` to use
114+
`Should -BeFalse` instead of `Should -Contain $false` to comply with DSC
115+
Community Pester style guidelines
116+
[issue #2315](https://github.com/dsccommunity/SqlServerDsc/issues/2315).
113117
- Added integration tests for `Set-SqlDscAudit` command to ensure it functions
114118
correctly in real environments
115119
[issue #2236](https://github.com/dsccommunity/SqlServerDsc/issues/2236).

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ Describe 'Get-SqlDscSetupLog' -Tag 'Public' {
284284

285285
It 'Should have Path as an optional parameter' {
286286
$commandInfo = Get-Command -Name 'Get-SqlDscSetupLog'
287-
$commandInfo.Parameters['Path'].Attributes.Mandatory | Should -Contain $false
287+
$commandInfo.Parameters['Path'].Attributes.Mandatory | Should -BeFalse
288288
}
289289

290290
It 'Should have the correct output type' {

0 commit comments

Comments
 (0)