Skip to content

Commit 8c47e17

Browse files
committed
Only match against [version] in changelog, not [version] and [date]
1 parent 5e51559 commit 8c47e17

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Tests/Meta/Manifest.Tests.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,25 @@ Describe 'Module manifest' {
2323
It "has a valid version in the manifest" {
2424
$script:manifest.Version -as [Version] | Should Not BeNullOrEmpty
2525
}
26-
26+
2727
It 'has a valid description' {
2828
$script:manifest.Description | Should Not BeNullOrEmpty
2929
}
3030

3131
It 'has a valid author' {
3232
$script:manifest.Author | Should Not BeNullOrEmpty
3333
}
34-
34+
3535
It 'has a valid guid' {
36-
{
37-
[guid]::Parse($script:manifest.Guid)
36+
{
37+
[guid]::Parse($script:manifest.Guid)
3838
} | Should Not throw
3939
}
40-
40+
4141
It 'has a valid copyright' {
4242
$script:manifest.CopyRight | Should Not BeNullOrEmpty
4343
}
44-
44+
4545
# Only for DSC modules
4646
# It 'exports DSC resources' {
4747
# $dscResources = ($Manifest.psobject.Properties | Where Name -eq 'ExportedDscResources').Value
@@ -51,7 +51,7 @@ Describe 'Module manifest' {
5151
$script:changelogVersion = $null
5252
It "has a valid version in the changelog" {
5353
foreach ($line in (Get-Content $changelogPath)) {
54-
if ($line -match "^## (?<Version>(\d+\.){1,3}\d+) \(\d{4}-\d{2}-\d{2}\)") {
54+
if ($line -match "^## (?<Version>(\d+\.){1,3}\d+)") {
5555
$script:changelogVersion = $matches.Version
5656
break
5757
}

0 commit comments

Comments
 (0)