Skip to content

Commit

Permalink
Refactor PSDocs.Common.Tests.ps1 to remove unnecessary module removal…
Browse files Browse the repository at this point in the history
… and use TestModule instead of PSDocs module in InModuleScope
  • Loading branch information
vicperdana committed Aug 21, 2024
1 parent 03797ad commit 89fc744
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/PSDocs.Tests/PSDocs.Common.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ Describe 'Get-PSDocument' -Tag 'Cmdlet', 'Common', 'Get-PSDocument' {
$testModuleSourcePath = Join-Path $here -ChildPath 'TestModule';
Mock -ModuleName 'PSDocs' LoadModule;
Import-Module $testModuleSourcePath -Force;
$rootPath = $PWD;
if ($Null -ne (Get-Module -Name TestModule -ErrorAction SilentlyContinue)) {
$Null = Remove-Module -Name TestModule;
}
Expand Down

0 comments on commit 89fc744

Please sign in to comment.