Skip to content

Commit

Permalink
Merge pull request #65 from lipkau/enhance/UpdatePesterVersion
Browse files Browse the repository at this point in the history
Updated pester version and tests to 4.3.1
  • Loading branch information
RamblingCookieMonster committed May 16, 2018
2 parents 400c3fd + 818262b commit 1aaf71d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Build/build.requirements.psd1
Expand Up @@ -19,6 +19,6 @@
}
'Pester' = @{
DependencyType = 'PSGalleryNuget'
Version = '3.4.6'
Version = '4.3.1'
}
}
}
16 changes: 8 additions & 8 deletions Tests/BuildHelpers.Tests.ps1
Expand Up @@ -213,26 +213,26 @@ Describe 'Step-ModuleVersion' {
}

It 'Should have an properly formatted array for "FunctionsToExport"' {
'TestDrive:\testmanifest\testmanifest.psd1' | Should Contain "FunctionsToExport = 'Get-MyFunction', 'Set-MyFunction'"
'TestDrive:\testmanifest\testmanifest.psd1' | Should -FileContentMatchExactly "FunctionsToExport = 'Get-MyFunction', 'Set-MyFunction'"
}

It 'Should have an properly formatted array for "Tags"' {
'TestDrive:\testmanifest\testmanifest.psd1' | Should Contain "Tags = 'one', 'two', 'three'"
'TestDrive:\testmanifest\testmanifest.psd1' | Should -FileContentMatchExactly "Tags = 'one', 'two', 'three'"
}

It 'Should have an properly formatted array for "NestedModules"' {
'TestDrive:\testmanifest\testmanifest.psd1' | Should Contain ([regex]::Escape('NestedModules = @(''Module1'','))
'TestDrive:\testmanifest\testmanifest.psd1' | Should Contain ([regex]::Escape(" 'Module2')"))
'TestDrive:\testmanifest\testmanifest.psd1' | Should -FileContentMatch ([regex]::Escape('NestedModules = @(''Module1'','))
'TestDrive:\testmanifest\testmanifest.psd1' | Should -FileContentMatch ([regex]::Escape(" 'Module2')"))
}

It 'Should have an properly formatted array for "RequiredModules"' {
'TestDrive:\testmanifest\testmanifest.psd1' | Should Contain ([regex]::Escape('RequiredModules = @(''ModuleA'','))
'TestDrive:\testmanifest\testmanifest.psd1' | Should Contain ([regex]::Escape(" 'ModuleB')"))
'TestDrive:\testmanifest\testmanifest.psd1' | Should -FileContentMatch ([regex]::Escape('RequiredModules = @(''ModuleA'','))
'TestDrive:\testmanifest\testmanifest.psd1' | Should -FileContentMatch ([regex]::Escape(" 'ModuleB')"))
}

It 'Should have an properly formatted array for "ModuleList"' {
'TestDrive:\testmanifest\testmanifest.psd1' | Should Contain ([regex]::Escape('ModuleList = @(''ModuleX'','))
'TestDrive:\testmanifest\testmanifest.psd1' | Should Contain ([regex]::Escape(" 'ModuleY')"))
'TestDrive:\testmanifest\testmanifest.psd1' | Should -FileContentMatch ([regex]::Escape('ModuleList = @(''ModuleX'','))
'TestDrive:\testmanifest\testmanifest.psd1' | Should -FileContentMatch ([regex]::Escape(" 'ModuleY')"))
}

It 'The other properties should be the same' {
Expand Down

0 comments on commit 1aaf71d

Please sign in to comment.