Skip to content

Commit

Permalink
Fix unit tests that was wrongly written and failed on Pester 5.5 (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju committed Jun 30, 2023
1 parent e9155b8 commit 73c8777
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 80 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fix unit tests that was wrongly written and failed on Pester 5.5.

## [0.116.5] - 2023-04-19

### Fixed

- Fix Azure Pipeline bug to resolve errors and delays during the build process. Shallow fetch has been disabled to ensure complete repository cloning. Fixes [#424](https://github.com/gaelcolas/Sampler/issues/424)

## [0.116.4] - 2023-04-06
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ Describe 'Complete Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ Describe 'Custom Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down Expand Up @@ -270,10 +266,6 @@ Describe 'Custom Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down Expand Up @@ -428,10 +420,6 @@ Describe 'Custom Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down Expand Up @@ -587,10 +575,6 @@ Describe 'Custom Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down Expand Up @@ -677,10 +661,6 @@ Describe 'Custom Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down Expand Up @@ -764,10 +744,6 @@ Describe 'Custom Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down Expand Up @@ -854,10 +830,6 @@ Describe 'Custom Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down Expand Up @@ -942,10 +914,6 @@ Describe 'Custom Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down Expand Up @@ -1034,10 +1002,6 @@ Describe 'Custom Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down Expand Up @@ -1123,10 +1087,6 @@ Describe 'Custom Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down Expand Up @@ -1212,10 +1172,6 @@ Describe 'Custom Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down Expand Up @@ -1303,10 +1259,6 @@ Describe 'Custom Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down Expand Up @@ -1389,10 +1341,6 @@ Describe 'Custom Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down Expand Up @@ -1477,10 +1425,6 @@ Describe 'Custom Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ Describe 'DSC Community Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ Describe 'Simple Module No Build Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ Describe 'Simple Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down Expand Up @@ -162,10 +158,6 @@ Describe 'Simple Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down Expand Up @@ -263,10 +255,6 @@ Describe 'Simple Module Plaster Template' {
)
}

AfterAll {
Remove-Item -Path $TestDrive -Recurse -Force
}

It 'Should create a new module without throwing' {
$invokePlasterParameters = @{
TemplatePath = Join-Path -Path $importedModule.ModuleBase -ChildPath 'Templates/Sampler'
Expand Down

0 comments on commit 73c8777

Please sign in to comment.