Skip to content

Commit a32219c

Browse files
Group public command tests by feature
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent b866361 commit a32219c

14 files changed

Lines changed: 36 additions & 13 deletions

tests/Connect-DomeneshopAccount.Tests.ps1 renamed to tests/Auth/Connect-DomeneshopAccount.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ param()
1313

1414
Describe 'Connect-DomeneshopAccount' {
1515
BeforeAll {
16-
. (Join-Path -Path $PSScriptRoot -ChildPath 'Domeneshop.TestSetup.ps1')
16+
. (Join-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -ChildPath 'Domeneshop.TestSetup.ps1')
1717
}
1818

1919
BeforeEach {

tests/Get-DomeneshopContext.Tests.ps1 renamed to tests/Auth/Get-DomeneshopContext.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ param()
1313

1414
Describe 'Get-DomeneshopContext' {
1515
BeforeAll {
16-
. (Join-Path -Path $PSScriptRoot -ChildPath 'Domeneshop.TestSetup.ps1')
16+
. (Join-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -ChildPath 'Domeneshop.TestSetup.ps1')
1717
}
1818

1919
It 'gets the configured default context' {

tests/Update-DomeneshopDdns.Tests.ps1 renamed to tests/Ddns/Update-DomeneshopDdns.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ param()
1313

1414
Describe 'Update-DomeneshopDdns' {
1515
BeforeAll {
16-
. (Join-Path -Path $PSScriptRoot -ChildPath 'Domeneshop.TestSetup.ps1')
16+
. (Join-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -ChildPath 'Domeneshop.TestSetup.ps1')
1717
}
1818

1919
BeforeEach {

tests/Add-DomeneshopDnsRecord.Tests.ps1 renamed to tests/Dns/Add-DomeneshopDnsRecord.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ param()
1313

1414
Describe 'Add-DomeneshopDnsRecord' {
1515
BeforeAll {
16-
. (Join-Path -Path $PSScriptRoot -ChildPath 'Domeneshop.TestSetup.ps1')
16+
. (Join-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -ChildPath 'Domeneshop.TestSetup.ps1')
1717
}
1818

1919
BeforeEach {

tests/Get-DomeneshopDnsRecord.Tests.ps1 renamed to tests/Dns/Get-DomeneshopDnsRecord.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ param()
1313

1414
Describe 'Get-DomeneshopDnsRecord' {
1515
BeforeAll {
16-
. (Join-Path -Path $PSScriptRoot -ChildPath 'Domeneshop.TestSetup.ps1')
16+
. (Join-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -ChildPath 'Domeneshop.TestSetup.ps1')
1717
}
1818

1919
BeforeEach {

tests/Remove-DomeneshopDnsRecord.Tests.ps1 renamed to tests/Dns/Remove-DomeneshopDnsRecord.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ param()
1313

1414
Describe 'Remove-DomeneshopDnsRecord' {
1515
BeforeAll {
16-
. (Join-Path -Path $PSScriptRoot -ChildPath 'Domeneshop.TestSetup.ps1')
16+
. (Join-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -ChildPath 'Domeneshop.TestSetup.ps1')
1717
}
1818

1919
BeforeEach {

tests/Set-DomeneshopDnsRecord.Tests.ps1 renamed to tests/Dns/Set-DomeneshopDnsRecord.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ param()
1313

1414
Describe 'Set-DomeneshopDnsRecord' {
1515
BeforeAll {
16-
. (Join-Path -Path $PSScriptRoot -ChildPath 'Domeneshop.TestSetup.ps1')
16+
. (Join-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -ChildPath 'Domeneshop.TestSetup.ps1')
1717
}
1818

1919
BeforeEach {

tests/Get-DomeneshopDomain.Tests.ps1 renamed to tests/Domains/Get-DomeneshopDomain.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ param()
1313

1414
Describe 'Get-DomeneshopDomain' {
1515
BeforeAll {
16-
. (Join-Path -Path $PSScriptRoot -ChildPath 'Domeneshop.TestSetup.ps1')
16+
. (Join-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -ChildPath 'Domeneshop.TestSetup.ps1')
1717
}
1818

1919
BeforeEach {

tests/Add-DomeneshopForward.Tests.ps1 renamed to tests/Forwards/Add-DomeneshopForward.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ param()
1313

1414
Describe 'Add-DomeneshopForward' {
1515
BeforeAll {
16-
. (Join-Path -Path $PSScriptRoot -ChildPath 'Domeneshop.TestSetup.ps1')
16+
. (Join-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -ChildPath 'Domeneshop.TestSetup.ps1')
1717
}
1818

1919
BeforeEach {

tests/Get-DomeneshopForward.Tests.ps1 renamed to tests/Forwards/Get-DomeneshopForward.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ param()
1313

1414
Describe 'Get-DomeneshopForward' {
1515
BeforeAll {
16-
. (Join-Path -Path $PSScriptRoot -ChildPath 'Domeneshop.TestSetup.ps1')
16+
. (Join-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -ChildPath 'Domeneshop.TestSetup.ps1')
1717
}
1818

1919
BeforeEach {

0 commit comments

Comments
 (0)