diff --git a/tests/Casing.Tests.ps1 b/tests/Casing.Tests.ps1 index 29c6498..46e90df 100644 --- a/tests/Casing.Tests.ps1 +++ b/tests/Casing.Tests.ps1 @@ -1,4 +1,6 @@ -Describe 'CasingStyle' { +#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*' } + +Describe 'CasingStyle' { Context 'Function: Get-CasingStyle' { It "Get-CasingStyle: Detects 'testtesttest' as lowercase" { 'testtesttest' | Get-CasingStyle | Should -Be 'lowercase' diff --git a/tests/UseCases.Tests.ps1 b/tests/UseCases.Tests.ps1 index 3567f28..0d47fff 100644 --- a/tests/UseCases.Tests.ps1 +++ b/tests/UseCases.Tests.ps1 @@ -1,4 +1,6 @@ -#-------------------------------------------------------------------- +#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*' } + +#-------------------------------------------------------------------- # Test Get-CasingStyle: verify that known inputs are detected correctly, # and that ambiguous strings return 'Unknown' #--------------------------------------------------------------------