mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-06-28 09:04:47 -05:00
Trim Trailing Whitespace
This commit is contained in:
@ -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"
|
||||
}
|
||||
)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user