mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-11-26 07:26:18 +01:00
clean up redundant/problematic tests
This commit is contained in:
@@ -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 } }
|
||||
|
||||
Reference in New Issue
Block a user