The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 10:15 UTC
test(mobile): keep composer selection helper private (#9953)
Julius Marminge committed
Sep 4, 2026 at 23:25 UTC
a399473c30e6b451ec6348e52cbf9b4c4b07e505
2 files changed
+1
-8
apps/mobile/src/features/threads/use-composer-command-menu.test.ts
-7
@@ -13,16 +13,9 @@ vi.mock("../../state/use-atom-command", () => ({
13
14
import {
15
buildComposerSlashCommandItems,
16
- composerSelectionAtEnd,
16
resolveComposerCommandSelection,
17
} from "./use-composer-command-menu";
18
20
-describe("composerSelectionAtEnd", () => {
21
- it("resets a changed draft owner to the new draft end", () => {
22
- expect(composerSelectionAtEnd("queued task 🧪")).toEqual({ start: 14, end: 14 });
23
- });
24
-});
25
-
19
describe("mobile slash commands", () => {
20
const antigravity = {
21
driver: ProviderDriverKind.make("antigravity"),
apps/mobile/src/features/threads/use-composer-command-menu.ts
+1
-1
@@ -27,7 +27,7 @@ import { matchesSlashSkillQuery } from "./composerSlashSkillSearch";
27
28
const WORKSPACE_SNAPSHOT_RETRY_COOLDOWN_MS = 10_000;
29
30
-export function composerSelectionAtEnd(draftMessage: string): ComposerEditorSelection {
30
+function composerSelectionAtEnd(draftMessage: string): ComposerEditorSelection {
31
return { start: draftMessage.length, end: draftMessage.length };
32
}
33