fix(workspace): harden omo migration review issues
This commit is contained in:
@@ -48,4 +48,21 @@ describe("git-worktree", () => {
|
||||
expect(summary).toContain("src/b.ts")
|
||||
expect(summary).toContain("src/c.ts")
|
||||
})
|
||||
|
||||
test("#given notepad path #when formatting omo plan changes #then does not report notepad updated", () => {
|
||||
const summary = formatFileChanges([
|
||||
{ path: ".omo/plans/work.md", added: 1, removed: 0, status: "modified" },
|
||||
], ".omo/notepads/work/notes.md")
|
||||
|
||||
expect(summary).not.toContain("[NOTEPAD UPDATED]")
|
||||
})
|
||||
|
||||
test("#given notepad path #when formatting omo notepad changes #then reports notepad updated", () => {
|
||||
const summary = formatFileChanges([
|
||||
{ path: ".omo/notepads/work/notes.md", added: 1, removed: 0, status: "modified" },
|
||||
], ".omo/notepads/work/notes.md")
|
||||
|
||||
expect(summary).toContain("[NOTEPAD UPDATED]")
|
||||
expect(summary).toContain(".omo/notepads/work/notes.md")
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user