Open History to see the last commit
1import { describe, expect, it } from "vite-plus/test";
2import * as Schema from "effect/Schema";
3
4import { LaunchEditorInput } from "./editor.ts";
5
6const decodeLaunchEditorInput = Schema.decodeSync(LaunchEditorInput);
7
8describe("LaunchEditorInput", () => {
9 it("keeps spaces at the ends of the path", () => {
10 const cwd = "/repo/ notes.txt ";
11 expect(decodeLaunchEditorInput({ cwd, editor: "cursor" }).cwd).toBe(cwd);
12 });
13});