mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-11-26 07:26:18 +01:00
Update app descriptions and friendly names
And remove redundant friendly name and descriptions from Apps.json
This commit is contained in:
@@ -189,7 +189,7 @@ Describe 'Import-AppDetailsFromJson' {
|
||||
|
||||
$apps | Should -HaveCount 1
|
||||
$apps[0].FriendlyName | Should -Be 'Microsoft Clipchamp'
|
||||
$apps[0].Description | Should -Be 'Video editor from Microsoft'
|
||||
$apps[0].Description | Should -Be 'Create and edit videos with trimming, captions, and audio'
|
||||
$apps[0].DisplayName | Should -Be 'Microsoft Clipchamp (Clipchamp.Clipchamp)'
|
||||
}
|
||||
|
||||
@@ -215,6 +215,18 @@ Describe 'Import-AppDetailsFromJson' {
|
||||
Should -Invoke Get-AppxPackage -Times 1 -Exactly
|
||||
}
|
||||
|
||||
It 'detects the current PC Manager package while retaining its legacy ID' {
|
||||
$script:AppsListFilePath = Join-Path $PSScriptRoot '..\Config\Apps.json'
|
||||
Mock Get-AppxPackage { [PSCustomObject]@{ Name = 'Microsoft.MicrosoftPCManager' } }
|
||||
Mock Test-AppInWingetList { $false }
|
||||
|
||||
$apps = @(Import-AppDetailsFromJson -OnlyInstalled -InstalledList @())
|
||||
|
||||
$apps | Should -HaveCount 1
|
||||
$apps[0].FriendlyName | Should -Be 'Microsoft PC Manager'
|
||||
$apps[0].AppId | Should -Be @('Microsoft.PCManager', 'Microsoft.MicrosoftPCManager')
|
||||
}
|
||||
|
||||
It 'loads presets and preserves their ID arrays' {
|
||||
$presets = @(Import-AppPresetsFromJson)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user