Correct the way ModuleName is calculated in tests

This commit is contained in:
Kevin Marquette
2018-07-16 02:32:54 -07:00
parent fd5d87bf2a
commit e38eb66540
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
$Script:ModuleName = 'LDTestFramework' $Script:ModuleRoot = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent
$Script:ModuleRoot = Split-Path -Path $PSScriptRoot -Parent $Script:ModuleName = Split-Path -Path $ModuleRoot -Leaf
Describe "Public commands have comment-based or external help" -Tags 'Build' { Describe "Public commands have comment-based or external help" -Tags 'Build' {
$functions = Get-Command -Module $ModuleName $functions = Get-Command -Module $ModuleName

View File

@@ -1,5 +1,5 @@
$Script:ModuleName = 'LDTestFramework'
$Script:ModuleRoot = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $Script:ModuleRoot = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent
$Script:ModuleName = Split-Path -Path $ModuleRoot -Leaf
$Script:SourceRoot = Join-Path -Path $ModuleRoot -ChildPath $ModuleName $Script:SourceRoot = Join-Path -Path $ModuleRoot -ChildPath $ModuleName
Describe "All commands pass PSScriptAnalyzer rules" -Tag 'Build' { Describe "All commands pass PSScriptAnalyzer rules" -Tag 'Build' {