mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-11-25 23:16:15 +01:00
Update app descriptions and friendly names
And remove redundant friendly name and descriptions from Apps.json
This commit is contained in:
@@ -75,6 +75,12 @@ Describe 'Shipped language catalogs: <LanguageCode>' -ForEach $languageCases {
|
||||
}
|
||||
}
|
||||
|
||||
It 'includes every app name and description without relying on English fallback' {
|
||||
foreach ($key in ($baselineValues.Keys | Where-Object { $_.StartsWith('Apps.') })) {
|
||||
$translationValues.ContainsKey($key) | Should -BeTrue -Because "$LanguageCode/$key must be translated"
|
||||
}
|
||||
}
|
||||
|
||||
It 'preserves UTF-8 UI and app names when loading the catalogs' {
|
||||
$lang.Chrome.SettingsTitle | Should -BeExactly $catalogs.Chrome.SettingsTitle
|
||||
$lang.Apps.'Microsoft.WindowsCalculator'.FriendlyName |
|
||||
|
||||
@@ -37,7 +37,7 @@ Describe 'Invoke-AppDetailsFromJsonAsync' {
|
||||
$result.Count | Should -Be @($appCatalog.Apps).Count
|
||||
$clipchamp = $result | Where-Object { $_.AppId -contains 'Clipchamp.Clipchamp' }
|
||||
$clipchamp.FriendlyName | Should -Be 'Microsoft Clipchamp'
|
||||
$clipchamp.Description | Should -Be 'Video editor from Microsoft'
|
||||
$clipchamp.Description | Should -Be 'Create and edit videos with trimming, captions, and audio'
|
||||
}
|
||||
|
||||
It 'does not return null entries when OnlyInstalled filters the runspace results' {
|
||||
|
||||
@@ -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