Skip to content

Commit 0b36e9b

Browse files
Align command prompts and test setup
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent a7ddcd0 commit 0b36e9b

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/functions/public/Dns/Remove-DomeneshopDnsRecord.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function Remove-DomeneshopDnsRecord {
5555
$apiBaseUri = Get-DomeneshopApiBaseUri -Context $resolvedContext
5656
$uri = "$apiBaseUri/domains/$DomainID/dns/$RecordID"
5757

58-
if ($PSCmdlet.ShouldProcess("Domain $DomainID DNS record $RecordID", 'Remove')) {
58+
if ($PSCmdlet.ShouldProcess("Domain [$DomainID] DNS record [$RecordID]", 'Remove')) {
5959
Invoke-DomeneshopApiRequest -Method Delete -Uri $uri -Context $resolvedContext
6060
}
6161
}

src/functions/public/Forwards/Remove-DomeneshopForward.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function Remove-DomeneshopForward {
5757
$encodedHost = [uri]::EscapeDataString($ForwardHost)
5858
$uri = "$apiBaseUri/domains/$DomainID/forwards/$encodedHost"
5959

60-
if ($PSCmdlet.ShouldProcess("Domain $DomainID forward $ForwardHost", 'Remove')) {
60+
if ($PSCmdlet.ShouldProcess("Domain [$DomainID] HTTP forward [$ForwardHost]", 'Remove')) {
6161
Invoke-DomeneshopApiRequest -Method Delete -Uri $uri -Context $resolvedContext
6262
}
6363
}

tests/Get-PSModuleTest.Tests.ps1

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

1414
Describe 'Get-PSModuleTest' {
1515
BeforeAll {
16-
$functionFiles = Get-ChildItem -Path "$PSScriptRoot\..\src\functions" -Filter '*.ps1' -Recurse -File | Sort-Object -Property FullName
17-
foreach ($file in $functionFiles) {
18-
. $file.FullName
19-
}
16+
. "$PSScriptRoot\Domeneshop.TestSetup.ps1"
2017
}
2118

2219
It 'returns a greeting for the supplied name' {

0 commit comments

Comments
 (0)