Open History to see the last commit
1import { describe, expect, it, vi } from "vite-plus/test";
2
3vi.mock("../../state/queries", () => ({
4 useComposerPathSearch: () => ({ entries: [], isPending: false }),
5}));
6
7import { composerSelectionAtEnd } from "./use-composer-command-menu";
8
9describe("composerSelectionAtEnd", () => {
10 it("resets a changed draft owner to the new draft end", () => {
11 expect(composerSelectionAtEnd("queued task 🧪")).toEqual({ start: 14, end: 14 });
12 });
13});