diff --git a/DoTests.ps1 b/DoTests.ps1 index 5db09f7..c05848d 100644 --- a/DoTests.ps1 +++ b/DoTests.ps1 @@ -1,6 +1,6 @@ $PSVersionTable -if ($null -eq (Get-Module -ListAvailable pester)) { +if ($null -eq (Get-Module -ListAvailable pester) -or (Get-Module -ListAvailable pester).Version -lt "4.6.0") { Install-Module -Name Pester -Repository PSGallery -Force -Scope CurrentUser } diff --git a/__tests__/nameit.tests.ps1 b/__tests__/nameit.tests.ps1 index c28a29f..2bda921 100644 --- a/__tests__/nameit.tests.ps1 +++ b/__tests__/nameit.tests.ps1 @@ -16,16 +16,13 @@ Describe "NameIT Tests" { Import-PowerShellDataFile -Path $manifestPath | Should BeOfType [hashtable] } - # - # Revisit - # - # It "All Static Generators Should Exist as Functions" { - # InModuleScope NameIT { - # Clear-GeneratorSet - # $generators = Get-GeneratorSet -Enumerate - # Get-Command -CommandType Function -Name $generators | Should HaveCount $generators.Count - # } - # } + It "All Static Generators Should Exist as Functions" { + InModuleScope NameIT { + Clear-GeneratorSet + $generators = Get-GeneratorSet -Enumerate + Get-Command -CommandType Function -Name $generators | Should HaveCount $generators.Count + } + } } Context "Generation Tests" {