Skip to content

Commit

Permalink
update install of pester an tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dfinke committed May 29, 2019
1 parent 06e93d6 commit eb38350
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion DoTests.ps1
Original file line number Diff line number Diff line change
@@ -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
}

Expand Down
17 changes: 7 additions & 10 deletions __tests__/nameit.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit eb38350

Please sign in to comment.