mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 23:01:37 +00:00
Integrate OpenHandoff factory workspace (#212)
This commit is contained in:
parent
3d9476ed0b
commit
bf282199b5
251 changed files with 42824 additions and 692 deletions
26
factory/packages/cli/test/task-editor.test.ts
Normal file
26
factory/packages/cli/test/task-editor.test.ts
Normal 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("");
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue