fix: update parallel-merge test assertion for new trailer format
Co-authored-by: glittercowboy <186001655+glittercowboy@users.noreply.github.com> Agent-Logs-Url: https://github.com/gsd-build/gsd-2/sessions/250b4775-2d82-4329-9ccc-504b857428da
This commit is contained in:
parent
2c82923ca9
commit
423eb2fda1
2 changed files with 4 additions and 4 deletions
|
|
@ -533,7 +533,7 @@ describe('git-service', async () => {
|
|||
|
||||
// Auto-commit with .gsd/ excluded (simulates pre-switch)
|
||||
const msg = svc.autoCommit("pre-switch", "main", [".gsd/"]);
|
||||
assert.deepStrictEqual(msg, "chore(main): auto-commit after pre-switch", "pre-switch autoCommit with .gsd/ exclusion commits");
|
||||
assert.deepStrictEqual(msg, "chore: auto-commit after pre-switch\n\nGSD-Unit: main", "pre-switch autoCommit with .gsd/ exclusion commits");
|
||||
|
||||
// Verify .gsd/ file was NOT committed
|
||||
const show = run("git show --stat HEAD", repo);
|
||||
|
|
|
|||
|
|
@ -281,9 +281,9 @@ test("mergeCompletedMilestone — clean merge, session status cleaned up", async
|
|||
// Verify file merged to main
|
||||
assert.ok(existsSync(join(repo, "auth.ts")), "auth.ts should be on main");
|
||||
|
||||
// Verify commit on main
|
||||
const log = run("git log --oneline main", repo);
|
||||
assert.ok(log.includes("M010"), "commit message should reference M010");
|
||||
// Verify commit on main (M010 is now in the body as a GSD-Milestone trailer)
|
||||
const log = run("git log -1 --format=%B main", repo);
|
||||
assert.ok(log.includes("GSD-Milestone: M010"), "commit message should reference M010 in trailer");
|
||||
|
||||
// Verify session status cleaned up
|
||||
const statusAfter = readSessionStatus(repo, "M010");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue