authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-09-04 23:25:59-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-04 23:25:59-07:00
loga399473c30e6b451ec6348e52cbf9b4c4b07e505
treed1ed5201a3b8a90ddc7580be97c4a6d99df53fb3
parent07d2497db89014ccd71aa077fc809aff47e4af91
signature Signed by PGP key B5690EEEBB952194

test(mobile): keep composer selection helper private (#9953)


2 files changed, 1 insertions(+), 8 deletions(-)

apps/mobile/src/features/threads/use-composer-command-menu.test.ts-7
......@@ -13,16 +13,9 @@ vi.mock("../../state/use-atom-command", () => ({
1313
1414import {
1515 buildComposerSlashCommandItems,
16 composerSelectionAtEnd,
1716 resolveComposerCommandSelection,
1817} from "./use-composer-command-menu";
1918
20describe("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
2619describe("mobile slash commands", () => {
2720 const antigravity = {
2821 driver: ProviderDriverKind.make("antigravity"),
apps/mobile/src/features/threads/use-composer-command-menu.ts+1-1
......@@ -27,7 +27,7 @@ import { matchesSlashSkillQuery } from "./composerSlashSkillSearch";
2727
2828const WORKSPACE_SNAPSHOT_RETRY_COOLDOWN_MS = 10_000;
2929
30export function composerSelectionAtEnd(draftMessage: string): ComposerEditorSelection {
30function composerSelectionAtEnd(draftMessage: string): ComposerEditorSelection {
3131 return { start: draftMessage.length, end: draftMessage.length };
3232}
3333