From 1af5a0b8af54c09bebe6408ee7c38bef69f8104c Mon Sep 17 00:00:00 2001 From: Joe Workman Date: Mon, 2 Oct 2023 17:17:50 -0600 Subject: [PATCH] fullname tests --- PowerShell/Deploy/Get-Config.ps1 | 5 ----- .../Tests/ModuleValidation/PesterFiles.Tests.ps1 | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/PowerShell/Deploy/Get-Config.ps1 b/PowerShell/Deploy/Get-Config.ps1 index 09cc1e9a9..e0dc2ed4f 100644 --- a/PowerShell/Deploy/Get-Config.ps1 +++ b/PowerShell/Deploy/Get-Config.ps1 @@ -15,11 +15,6 @@ param ( # Set variables: $ScriptRoot = $MyInvocation.MyCommand.Path write-host $ScriptRoot -# break -If ($env:CI) { - $ScriptRoot = $ScriptRoot -replace "/support/support/", "/support/" - write-host $ScriptRoot -} $FolderPath_ModuleRootPath = (Get-Item -Path:($ScriptRoot)).Directory.parent.FullName $GitHubWikiUrl = 'https://github.com/TheJumpCloud/support/wiki/' diff --git a/PowerShell/JumpCloud Module/Tests/ModuleValidation/PesterFiles.Tests.ps1 b/PowerShell/JumpCloud Module/Tests/ModuleValidation/PesterFiles.Tests.ps1 index 6d091f56f..06e2f9171 100755 --- a/PowerShell/JumpCloud Module/Tests/ModuleValidation/PesterFiles.Tests.ps1 +++ b/PowerShell/JumpCloud Module/Tests/ModuleValidation/PesterFiles.Tests.ps1 @@ -1,6 +1,6 @@ Describe -Tag:('ModuleValidation') 'Pester Files Tests' { Function Get-PesterFilesTestCases { - $ModuleRoot = (Get-Item -Path:($PSScriptRoot)).Parent.Parent.FullName + $ModuleRoot = (Get-Item -Path:($PSScriptRoot)).Parent.Parent $FolderTests = "$ModuleRoot/Tests" $FolderPublic = "$ModuleRoot/Public" $PesterTestFilePath = Get-ChildItem -Path:("$FolderPublic/*.ps1") -Recurse -File | ForEach-Object {