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", () => ({...@@ -13,16 +13,9 @@ vi.mock("../../state/use-atom-command", () => ({
1313
14import {14import {
15 buildComposerSlashCommandItems,15 buildComposerSlashCommandItems,
16 composerSelectionAtEnd,
17 resolveComposerCommandSelection,16 resolveComposerCommandSelection,
18} from "./use-composer-command-menu";17} 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
26describe("mobile slash commands", () => {19describe("mobile slash commands", () => {
27 const antigravity = {20 const antigravity = {
28 driver: ProviderDriverKind.make("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,7 +27,7 @@ import { matchesSlashSkillQuery } from "./composerSlashSkillSearch";
2727
28const WORKSPACE_SNAPSHOT_RETRY_COOLDOWN_MS = 10_000;28const WORKSPACE_SNAPSHOT_RETRY_COOLDOWN_MS = 10_000;
2929
30export function composerSelectionAtEnd(draftMessage: string): ComposerEditorSelection {30function composerSelectionAtEnd(draftMessage: string): ComposerEditorSelection {
31 return { start: draftMessage.length, end: draftMessage.length };31 return { start: draftMessage.length, end: draftMessage.length };
32}32}
3333