Skip to content

Commit

Permalink
fix(test): fix preamble of PSDepend.Test
Browse files Browse the repository at this point in the history
  • Loading branch information
ckolumbus committed Nov 12, 2022
1 parent e082199 commit 70a121f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Tests/PSDepend.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
if(-not $ENV:BHProjectPath)
{
Set-BuildEnvironment -Path $PSScriptRoot\..
}
Remove-Module $ENV:BHProjectName -ErrorAction SilentlyContinue
Import-Module (Join-Path $ENV:BHProjectPath $ENV:BHProjectName) -Force

BeforeAll {

if(-not $ENV:BHProjectPath)
{
Set-BuildEnvironment -Path $PSScriptRoot\..
}
Remove-Module $ENV:BHProjectName -ErrorAction SilentlyContinue
Import-Module (Join-Path $ENV:BHProjectPath $ENV:BHProjectName) -Force

$PSVersion = $PSVersionTable.PSVersion.Major

# Verbose output for non-master builds on appveyor
Expand Down

0 comments on commit 70a121f

Please sign in to comment.