Update module path in test files for consistency
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Get-GiteaChildItem.Tests.ps1
|
# Get-GiteaChildItem.Tests.ps1
|
||||||
|
|
||||||
# Import the module under test
|
# 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
|
Import-Module -Name $modulePath -Force
|
||||||
|
|
||||||
Describe 'Get-GiteaChildItem' {
|
Describe 'Get-GiteaChildItem' {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Get-GiteaConfiguration.Tests.ps1
|
# Get-GiteaConfiguration.Tests.ps1
|
||||||
|
|
||||||
# Import the module under test
|
# 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
|
Import-Module -Name $modulePath -Force
|
||||||
|
|
||||||
Describe 'Get-GiteaConfiguration' {
|
Describe 'Get-GiteaConfiguration' {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Get-GiteaFileContent.Tests.ps1
|
# Get-GiteaFileContent.Tests.ps1
|
||||||
|
|
||||||
# Import the module under test
|
# 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
|
Import-Module -Name $modulePath -Force
|
||||||
|
|
||||||
Describe 'Get-GiteaFileContent' {
|
Describe 'Get-GiteaFileContent' {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Get-GiteaReleases.Tests.ps1
|
# Get-GiteaReleases.Tests.ps1
|
||||||
|
|
||||||
# Import the module
|
# 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
|
Import-Module -Name $modulePath -Force
|
||||||
|
|
||||||
Describe 'Get-GiteaReleases' {
|
Describe 'Get-GiteaReleases' {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Invoke-GiteaFileDownload.Tests.ps1
|
# Invoke-GiteaFileDownload.Tests.ps1
|
||||||
|
|
||||||
# Import the module under test
|
# 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
|
Import-Module -Name $modulePath -Force
|
||||||
|
|
||||||
Describe 'Invoke-GiteaFileDownload' {
|
Describe 'Invoke-GiteaFileDownload' {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ Describe 'Set-GiteaConfiguration' {
|
|||||||
|
|
||||||
BeforeAll {
|
BeforeAll {
|
||||||
# Import the module dynamically
|
# 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
|
Import-Module -Name $modulePath -Force
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user