import { describe, expect, it } from 'vitest';
import { badgeKind } from './unread';

describe('badgeKind', () => {
  it('shows nothing when nothing is unread', () => {
    expect(badgeKind(false, false)).toBeNull();
    // message without unread is inconsistent input; the unread guard still wins.
    expect(badgeKind(false, true)).toBeNull();
  });

  it('is a nudge badge when only nudges are unread', () => {
    expect(badgeKind(true, false)).toBe('nudge');
  });

  it('is a message badge when a real message is unread', () => {
    expect(badgeKind(true, true)).toBe('message');
  });
});
