Skip to content

Commit 54bba5d

Browse files
committed
fix: Ensure consistent formatting and add missing newlines in scripts
1 parent 0c76c95 commit 54bba5d

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

src/ALZ.Settings.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# specify the minimum required major PowerShell version that the build script should validate
2-
[version]$script:requiredPSVersion = '7.1.3'
2+
[version]$script:requiredPSVersion = '7.1.3'

src/ALZ/Private/Deploy-Accelerator-Helpers/Copy-ParameterFileCollection.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ function Copy-ParametersFileCollection {
2323
Write-Warning "The file $sourcePath does not exist."
2424
}
2525
}
26-
}
26+
}

src/Tests/Unit/Private/Set-Config.Tests.ps1

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ $ModuleName = 'ALZ'
55
$PathToManifest = [System.IO.Path]::Combine('..', '..', '..', $ModuleName, "$ModuleName.psd1")
66
#-------------------------------------------------------------------------
77
if (Get-Module -Name $ModuleName -ErrorAction 'SilentlyContinue') {
8-
#if the module is already in memory, remove it
9-
Remove-Module -Name $ModuleName -Force
8+
#if the module is already in memory, remove it
9+
Remove-Module -Name $ModuleName -Force
1010
}
1111
Import-Module $PathToManifest -Force
1212
#-------------------------------------------------------------------------
1313

1414
InModuleScope 'ALZ' {
15-
Describe 'Set-Config Private Function Tests' -Tag Unit {
16-
BeforeAll {
17-
$WarningPreference = 'SilentlyContinue'
18-
$ErrorActionPreference = 'SilentlyContinue'
19-
}
20-
Context 'Set-Config should request CLI input for configuration.' {
21-
It 'Based on the configuration object' {
15+
Describe 'Set-Config Private Function Tests' -Tag Unit {
16+
BeforeAll {
17+
$WarningPreference = 'SilentlyContinue'
18+
$ErrorActionPreference = 'SilentlyContinue'
19+
}
20+
Context 'Set-Config should request CLI input for configuration.' {
21+
It 'Based on the configuration object' {
2222

23-
$config = @'
23+
$config = @'
2424
{
2525
"parameters":{
2626
"Prefix":{
@@ -39,9 +39,9 @@ InModuleScope 'ALZ' {
3939
}
4040
'@ | ConvertFrom-Json
4141

42-
Set-Config -configurationParameters $config.Parameters
43-
}
42+
Set-Config -configurationParameters $config.Parameters
43+
}
4444

45-
}
46-
}
47-
}
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)