clean up redundant/problematic tests

This commit is contained in:
Jeffrey
2026-10-28 17:28:39 +01:00
parent 7cb6e6ade4
commit d2cb97a4ef
6 changed files with 46 additions and 66 deletions
@@ -51,13 +51,6 @@ Describe 'Invoke-SystemRestorePoint' {
Should -Invoke Read-Host -Times 0 -Exactly
}
It 'is loaded by the main entry point' {
$entryPoint = Get-Content -LiteralPath (Join-Path $PSScriptRoot '..\Win11Debloat.ps1') -Raw
$expectedImport = [regex]::Escape('Scripts/Features/Invoke-SystemRestorePoint.ps1')
$entryPoint | Should -Match $expectedImport
}
It 'enables disabled System Restore before creating the point in silent mode' {
$script:Silent = $true
Mock Get-ItemProperty { [PSCustomObject]@{ RPSessionInterval = 0 } }