test(mobile): keep composer selection helper private (#9953)
This commit is contained in:
1 parent
07d2497db8
commit
a399473c30
2 files changed
+1
-8
No files matched your search
@@ -13,16 +13,9 @@ vi.mock("../../state/use-atom-command", () => ({
|
||||
|
||||
import {
|
||||
buildComposerSlashCommandItems,
|
||||
composerSelectionAtEnd,
|
||||
resolveComposerCommandSelection,
|
||||
} from "./use-composer-command-menu";
|
||||
|
||||
describe("composerSelectionAtEnd", () => {
|
||||
it("resets a changed draft owner to the new draft end", () => {
|
||||
expect(composerSelectionAtEnd("queued task 🧪")).toEqual({ start: 14, end: 14 });
|
||||
});
|
||||
});
|
||||
|
||||
describe("mobile slash commands", () => {
|
||||
const antigravity = {
|
||||
driver: ProviderDriverKind.make("antigravity"),
|
||||
|
||||
@@ -27,7 +27,7 @@ import { matchesSlashSkillQuery } from "./composerSlashSkillSearch";
|
||||
|
||||
const WORKSPACE_SNAPSHOT_RETRY_COOLDOWN_MS = 10_000;
|
||||
|
||||
export function composerSelectionAtEnd(draftMessage: string): ComposerEditorSelection {
|
||||
function composerSelectionAtEnd(draftMessage: string): ComposerEditorSelection {
|
||||
return { start: draftMessage.length, end: draftMessage.length };
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user