| author | |
| committer | |
| log | a399473c30e6b451ec6348e52cbf9b4c4b07e505 |
| tree | d1ed5201a3b8a90ddc7580be97c4a6d99df53fb3 |
| parent | 07d2497db89014ccd71aa077fc809aff47e4af91 |
| signature | Signed by PGP key B5690EEEBB952194 |
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 | 13 | |
| 14 | 14 | import { |
| 15 | 15 | buildComposerSlashCommandItems, |
| 16 | composerSelectionAtEnd, | |
| 17 | 16 | resolveComposerCommandSelection, |
| 18 | 17 | } from "./use-composer-command-menu"; |
| 19 | 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 | ||
| 26 | 19 | describe("mobile slash commands", () => { |
| 27 | 20 | const antigravity = { |
| 28 | 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 | 27 | |
| 28 | 28 | const WORKSPACE_SNAPSHOT_RETRY_COOLDOWN_MS = 10_000; |
| 29 | 29 | |
| 30 | export function composerSelectionAtEnd(draftMessage: string): ComposerEditorSelection { | |
| 30 | function composerSelectionAtEnd(draftMessage: string): ComposerEditorSelection { | |
| 31 | 31 | return { start: draftMessage.length, end: draftMessage.length }; |
| 32 | 32 | } |
| 33 | 33 |