Integrate OpenHandoff factory workspace

This commit is contained in:
Nathan Flurry 2026-03-09 13:58:52 -07:00
parent 3d9476ed0b
commit 049504986b
251 changed files with 42824 additions and 692 deletions

View file

@ -0,0 +1,26 @@
import { describe, expect, it } from "vitest";
import { sanitizeEditorTask } from "../src/task-editor.js";
describe("task editor helpers", () => {
it("strips comment lines and trims whitespace", () => {
const value = sanitizeEditorTask(`
# comment
Implement feature
# another comment
with more detail
`);
expect(value).toBe("Implement feature\n\nwith more detail");
});
it("returns empty string when only comments are present", () => {
const value = sanitizeEditorTask(`
# hello
# world
`);
expect(value).toBe("");
});
});