Trim Trailing Whitespace

This commit is contained in:
Carterpersall
2023-10-04 10:08:10 -05:00
parent 807b0fb307
commit 0ce32aa2c2
57 changed files with 236 additions and 236 deletions

View File

@ -7,21 +7,21 @@
}
#endregion Load Variables needed for testing
#endregion Load Variables needed for testing
#===========================================================================
# Tests - Application Installs
#===========================================================================
Describe "Config Files" -ForEach @(
@{
@{
name = "applications"
config = $('{
"winget": "value",
"choco": "value"
}' | ConvertFrom-Json)
},
@{
@{
name = "tweaks"
undo = $true
}
@ -41,7 +41,7 @@ Describe "Config Files" -ForEach @(
$result.Add($application)
}
}
$result | Select-String "WPF*" | should -BeNullOrEmpty
}
}
@ -52,16 +52,16 @@ Describe "Config Files" -ForEach @(
foreach ($tweak in $tweaks){
$Originals = @(
@{
name = "registry"
@{
name = "registry"
value = "OriginalValue"
},
@{
name = "service"
@{
name = "service"
value = "OriginalType"
},
@{
name = "ScheduledTask"
},
@{
name = "ScheduledTask"
value = "OriginalState"
}
)

View File

@ -3,14 +3,14 @@
#===========================================================================
Describe "Functions"{
Get-ChildItem .\functions -Recurse -File | ForEach-Object {
context "$($psitem.BaseName)" {
BeforeEach -Scriptblock {
. $fullname
}
It "Imports with no errors" -TestCases @{
basename = $($psitem.BaseName)
fullname = $psitem.FullName

View File

@ -3,10 +3,10 @@
./Compile.ps1
$script = Get-Content .\winutil.ps1
$script[0..($script.count - 21)] | Out-File .\pester.ps1
$script[0..($script.count - 21)] | Out-File .\pester.ps1
#endregion Load Variables needed for testing
#endregion Load Variables needed for testing
BeforeAll {
. .\pester.ps1
@ -23,5 +23,5 @@ Describe "GUI" {
It "Imports with no errors" {
$sync.Form | should -Not -BeNullOrEmpty
}
}
}
}