mirror of
https://github.com/stablyai/orca.git
synced 2026-10-30 16:47:34 +00:00
* Default status bar usage to Compact * Explain Compact usage to affected existing users once
17 lines
557 B
TypeScript
17 lines
557 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { normalizeStatusBarUsageMode } from './status-bar-usage-mode'
|
|
|
|
describe('normalizeStatusBarUsageMode', () => {
|
|
it.each([undefined, null, '', 'expanded', 0, false, {}])(
|
|
'defaults missing or invalid value %j to compact',
|
|
(value) => {
|
|
expect(normalizeStatusBarUsageMode(value)).toBe('compact')
|
|
}
|
|
)
|
|
|
|
it('preserves supported modes', () => {
|
|
expect(normalizeStatusBarUsageMode('verbose')).toBe('verbose')
|
|
expect(normalizeStatusBarUsageMode('compact')).toBe('compact')
|
|
})
|
|
})
|