Skip to content

Commit

Branches test: a commit's author is a person since commits show their accounts

syntaqxcommitted Parent576048bBrowse files
1 file+7−10/1 viewed
+7−1
9494 const measured = JSON.parse(wire) as BranchDrifts;
9595 const shown = activeBranches([{ name: "farewell", hash: "bab14ff" }], measured, { pulls: [], previews: [] });
9696 assert.deepEqual(shown[0]?.drift, { ahead: 1, behind: 41 });
97− assert.deepEqual(shown[0]?.commit, { hash: "bab14ff", message: "Add a farewell", author: "syntaqx", at: "2026-10-02T07:52:16.000Z" });
97+ assert.deepEqual(shown[0]?.commit, {
98+ hash: "bab14ff",
99+ message: "Add a farewell",
100+ author: { kind: "author", name: "syntaqx", username: null, avatar: null },
101+ coAuthors: [],
102+ at: "2026-10-02T07:52:16.000Z",
103+ });
98104 });