summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/utils/displayUtils.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/utils/displayUtils.test.ts')
-rw-r--r--packages/cli/src/ui/utils/displayUtils.test.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/cli/src/ui/utils/displayUtils.test.ts b/packages/cli/src/ui/utils/displayUtils.test.ts
index 7dd9f0e8..64b0a727 100644
--- a/packages/cli/src/ui/utils/displayUtils.test.ts
+++ b/packages/cli/src/ui/utils/displayUtils.test.ts
@@ -14,7 +14,7 @@ import {
CACHE_EFFICIENCY_HIGH,
CACHE_EFFICIENCY_MEDIUM,
} from './displayUtils.js';
-import { Colors } from '../colors.js';
+import { theme } from '../semantic-colors.js';
describe('displayUtils', () => {
describe('getStatusColor', () => {
@@ -24,24 +24,24 @@ describe('displayUtils', () => {
};
it('should return green for values >= green threshold', () => {
- expect(getStatusColor(90, thresholds)).toBe(Colors.AccentGreen);
- expect(getStatusColor(80, thresholds)).toBe(Colors.AccentGreen);
+ expect(getStatusColor(90, thresholds)).toBe(theme.status.success);
+ expect(getStatusColor(80, thresholds)).toBe(theme.status.success);
});
it('should return yellow for values < green and >= yellow threshold', () => {
- expect(getStatusColor(79, thresholds)).toBe(Colors.AccentYellow);
- expect(getStatusColor(50, thresholds)).toBe(Colors.AccentYellow);
+ expect(getStatusColor(79, thresholds)).toBe(theme.status.warning);
+ expect(getStatusColor(50, thresholds)).toBe(theme.status.warning);
});
it('should return red for values < yellow threshold', () => {
- expect(getStatusColor(49, thresholds)).toBe(Colors.AccentRed);
- expect(getStatusColor(0, thresholds)).toBe(Colors.AccentRed);
+ expect(getStatusColor(49, thresholds)).toBe(theme.status.error);
+ expect(getStatusColor(0, thresholds)).toBe(theme.status.error);
});
it('should return defaultColor for values < yellow threshold when provided', () => {
expect(
- getStatusColor(49, thresholds, { defaultColor: Colors.Foreground }),
- ).toBe(Colors.Foreground);
+ getStatusColor(49, thresholds, { defaultColor: theme.text.primary }),
+ ).toBe(theme.text.primary);
});
});