Skip to content

Commit

Permalink
datetime tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jworkmanjc committed Oct 3, 2023
1 parent 2dbb50e commit 0a3c06a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ Describe -Tag:('ModuleValidation') 'Module Manifest Tests' {
$moduleContent = Get-COntent -Path ("$FilePath_psd1")
$stringMatch = Select-String -InputObject $moduleContent -Pattern "# Generated on: ([\d]+\/[\d]+\/[\d]+)"
$PSD1_date = $stringMatch.matches.groups[1].value
[datetime]$PSD1_date | Should -Be [datetime]( Get-Date -Format "M/d/yyyy" )
[datetime]$PSD1_date | Should -Be ([datetime]( Get-Date -Format "M/d/yyyy" ))
}
}

0 comments on commit 0a3c06a

Please sign in to comment.