From 1d0c8b43bc0cfbe834ee8f4eb69d82ccb6243067 Mon Sep 17 00:00:00 2001 From: Raymond LaRose Date: Tue, 27 May 2025 08:19:53 -0400 Subject: [PATCH] Update module path in test files for consistency --- Tests/Get-GiteaChildItem.Tests.ps1 | 2 +- Tests/Get-GiteaConfiguration.tests.ps1 | 2 +- Tests/Get-GiteaFileContent.Tests.ps1 | 2 +- Tests/Get-GiteaReleases.Tests.ps1 | 2 +- Tests/Invoke-GiteaFileDownload.Tests.ps1 | 2 +- Tests/Set-GiteaConfiguration.Tests.ps1 | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Tests/Get-GiteaChildItem.Tests.ps1 b/Tests/Get-GiteaChildItem.Tests.ps1 index dfe292c..c47d5fd 100644 --- a/Tests/Get-GiteaChildItem.Tests.ps1 +++ b/Tests/Get-GiteaChildItem.Tests.ps1 @@ -1,7 +1,7 @@ # Get-GiteaChildItem.Tests.ps1 # Import the module under test -$modulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\PS-GiteaUtilities.psm1' +$modulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\PS-GiteaUtilities\PS-GiteaUtilities.psm1' Import-Module -Name $modulePath -Force Describe 'Get-GiteaChildItem' { diff --git a/Tests/Get-GiteaConfiguration.tests.ps1 b/Tests/Get-GiteaConfiguration.tests.ps1 index f02e330..db699a0 100644 --- a/Tests/Get-GiteaConfiguration.tests.ps1 +++ b/Tests/Get-GiteaConfiguration.tests.ps1 @@ -1,7 +1,7 @@ # Get-GiteaConfiguration.Tests.ps1 # Import the module under test -$modulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\PS-GiteaUtilities.psm1' +$modulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\PS-GiteaUtilities\PS-GiteaUtilities.psm1' Import-Module -Name $modulePath -Force Describe 'Get-GiteaConfiguration' { diff --git a/Tests/Get-GiteaFileContent.Tests.ps1 b/Tests/Get-GiteaFileContent.Tests.ps1 index ccf8586..a44d2b6 100644 --- a/Tests/Get-GiteaFileContent.Tests.ps1 +++ b/Tests/Get-GiteaFileContent.Tests.ps1 @@ -1,7 +1,7 @@ # Get-GiteaFileContent.Tests.ps1 # Import the module under test -$modulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\PS-GiteaUtilities.psm1' +$modulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\PS-GiteaUtilities\PS-GiteaUtilities.psm1' Import-Module -Name $modulePath -Force Describe 'Get-GiteaFileContent' { diff --git a/Tests/Get-GiteaReleases.Tests.ps1 b/Tests/Get-GiteaReleases.Tests.ps1 index b072bdd..fcc3b26 100644 --- a/Tests/Get-GiteaReleases.Tests.ps1 +++ b/Tests/Get-GiteaReleases.Tests.ps1 @@ -1,7 +1,7 @@ # Get-GiteaReleases.Tests.ps1 # Import the module -$modulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\PS-GiteaUtilities.psm1' +$modulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\PS-GiteaUtilities\PS-GiteaUtilities.psm1' Import-Module -Name $modulePath -Force Describe 'Get-GiteaReleases' { diff --git a/Tests/Invoke-GiteaFileDownload.Tests.ps1 b/Tests/Invoke-GiteaFileDownload.Tests.ps1 index 99e0ec8..602aaf5 100644 --- a/Tests/Invoke-GiteaFileDownload.Tests.ps1 +++ b/Tests/Invoke-GiteaFileDownload.Tests.ps1 @@ -1,7 +1,7 @@ # Invoke-GiteaFileDownload.Tests.ps1 # Import the module under test -$modulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\PS-GiteaUtilities.psm1' +$modulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\PS-GiteaUtilities\PS-GiteaUtilities.psm1' Import-Module -Name $modulePath -Force Describe 'Invoke-GiteaFileDownload' { diff --git a/Tests/Set-GiteaConfiguration.Tests.ps1 b/Tests/Set-GiteaConfiguration.Tests.ps1 index 6330223..f72392f 100644 --- a/Tests/Set-GiteaConfiguration.Tests.ps1 +++ b/Tests/Set-GiteaConfiguration.Tests.ps1 @@ -4,7 +4,7 @@ Describe 'Set-GiteaConfiguration' { BeforeAll { # Import the module dynamically - $modulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\PS-GiteaUtilities.psm1' + $modulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\PS-GiteaUtilities\PS-GiteaUtilities.psm1' Import-Module -Name $modulePath -Force }