Tests/Get-ReportDate..Tests.ps1
Import-Module -Name HelperFunctions -Force Describe "Get-ReportDate" { Context "when function Get-ReportDate is called" { It "Get-ReportDate should be of type String in the format 'yyyy-MM-dd'" { Get-ReportDate | Should -BeOfType [String] } It "should return [DateTime] in the format yyyy-MM-dd" { Get-ReportDate | Should -Be $(Get-Date -Format "yyyy-MM-dd") } } } |