Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

editor.test.ts

13 lines434 Bytes

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});