mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-16 09:50:36 -06:00
Update configs.Tests.ps1
This commit is contained in:
parent
31ec62f00b
commit
be9fae199c
@ -9,7 +9,7 @@ Get-ChildItem .\config | Where-Object {$_.Extension -eq ".json"} | ForEach-Objec
|
||||
# Tests - Application Installs
|
||||
#===========================================================================
|
||||
|
||||
Describe "Config Files" -ForEach @(
|
||||
$configurations = @(
|
||||
@{
|
||||
name = "applications"
|
||||
config = $('{
|
||||
@ -25,7 +25,14 @@ Describe "Config Files" -ForEach @(
|
||||
name = "tweaks"
|
||||
undo = $true
|
||||
}
|
||||
) {
|
||||
)
|
||||
|
||||
foreach ($configuration in $configurations) {
|
||||
Describe "Config Files - $($configuration.name)" {
|
||||
$name = $configuration.name
|
||||
$config = $configuration.config
|
||||
$undo = $configuration.undo
|
||||
|
||||
Context "$name config file" {
|
||||
It "Imports with no errors" {
|
||||
$global:importedconfigs.$name | should -Not -BeNullOrEmpty
|
||||
@ -76,6 +83,6 @@ Describe "Config Files" -ForEach @(
|
||||
$result | Select-String "WPF*" | should -BeNullOrEmpty
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user