LDX-825 add better module name handling

This commit is contained in:
Kevin Marquette
2018-07-17 12:15:47 -07:00
parent d24e7b1843
commit 2c08bb2b7c
4 changed files with 22 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
$Script:ModuleRoot = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent
$Script:ModuleName = Split-Path -Path $ModuleRoot -Leaf
$Script:ModuleName = $Script:ModuleName = Get-ChildItem $ModuleRoot\*\*.psm1 | Select-object -ExpandProperty BaseName
$Script:SourceRoot = Join-Path -Path $ModuleRoot -ChildPath $ModuleName
Describe "All commands pass PSScriptAnalyzer rules" -Tag 'Build' {