summaryrefslogtreecommitdiff
path: root/packages/cli/src/utils/settingsUtils.test.ts
diff options
context:
space:
mode:
authorAli Al Jufairi <[email protected]>2025-08-19 12:38:55 +0900
committerGitHub <[email protected]>2025-08-19 03:38:55 +0000
commite290a61a52a08306269b49174160ab9a92df5f19 (patch)
tree6617791dc96864d321fc14ba4afcb6f03083e5e9 /packages/cli/src/utils/settingsUtils.test.ts
parent92bb4624c4ce191ed5dd60aaca4e2786039b3b2b (diff)
fix(settings) : Disable showing statics in the dialog (#5998)
Co-authored-by: Jacob Richman <[email protected]> Co-authored-by: N. Taylor Mullen <[email protected]>
Diffstat (limited to 'packages/cli/src/utils/settingsUtils.test.ts')
-rw-r--r--packages/cli/src/utils/settingsUtils.test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/cli/src/utils/settingsUtils.test.ts b/packages/cli/src/utils/settingsUtils.test.ts
index 98a4588c..39c611f8 100644
--- a/packages/cli/src/utils/settingsUtils.test.ts
+++ b/packages/cli/src/utils/settingsUtils.test.ts
@@ -239,7 +239,7 @@ describe('SettingsUtils', () => {
expect(shouldShowInDialog('showMemoryUsage')).toBe(true);
expect(shouldShowInDialog('vimMode')).toBe(true);
expect(shouldShowInDialog('hideWindowTitle')).toBe(true);
- expect(shouldShowInDialog('usageStatisticsEnabled')).toBe(true);
+ expect(shouldShowInDialog('usageStatisticsEnabled')).toBe(false);
});
it('should return false for settings marked to hide from dialog', () => {
@@ -286,7 +286,7 @@ describe('SettingsUtils', () => {
expect(allKeys).toContain('ideMode');
expect(allKeys).toContain('disableAutoUpdate');
expect(allKeys).toContain('showMemoryUsage');
- expect(allKeys).toContain('usageStatisticsEnabled');
+ expect(allKeys).not.toContain('usageStatisticsEnabled');
expect(allKeys).not.toContain('selectedAuthType');
expect(allKeys).not.toContain('coreTools');
expect(allKeys).not.toContain('theme'); // Now hidden
@@ -302,7 +302,7 @@ describe('SettingsUtils', () => {
expect(keys).toContain('showMemoryUsage');
expect(keys).toContain('vimMode');
expect(keys).toContain('hideWindowTitle');
- expect(keys).toContain('usageStatisticsEnabled');
+ expect(keys).not.toContain('usageStatisticsEnabled');
expect(keys).not.toContain('selectedAuthType'); // Advanced setting
expect(keys).not.toContain('useExternalAuth'); // Advanced setting
});
@@ -329,7 +329,7 @@ describe('SettingsUtils', () => {
expect(dialogKeys).toContain('showMemoryUsage');
expect(dialogKeys).toContain('vimMode');
expect(dialogKeys).toContain('hideWindowTitle');
- expect(dialogKeys).toContain('usageStatisticsEnabled');
+ expect(dialogKeys).not.toContain('usageStatisticsEnabled');
expect(dialogKeys).toContain('ideMode');
expect(dialogKeys).toContain('disableAutoUpdate');