Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

641 B
Raw Blame
import { describe, expect, it } from "vitest";
import { jumpLabel } from "./follow";

describe("jumpLabel", () => {
  it("says what happened below while you read further up", () => {
    expect(jumpLabel({ busy: true, unseen: 0, finished: false })).toBe("New activity");
    expect(jumpLabel({ busy: false, unseen: 1, finished: true })).toBe("1 new message");
    expect(jumpLabel({ busy: true, unseen: 3, finished: false })).toBe("3 new messages");
    expect(jumpLabel({ busy: false, unseen: 0, finished: true })).toBe("Reply finished");
    expect(jumpLabel({ busy: false, unseen: 0, finished: false })).toBe("Jump to latest");
  });
});