MCPcopy
hub / github.com/di-sukharev/opencommit / assertHeadCommit

Function assertHeadCommit

test/e2e/utils.ts:340–345  ·  view source on GitHub ↗
(
  gitDir: string,
  expectedSubject: string
)

Source from the content-addressed store, hash-verified

338};
339
340export const assertHeadCommit = async (
341 gitDir: string,
342 expectedSubject: string
343): Promise<void> => {
344 expect(await getHeadCommitSubject(gitDir)).toBe(expectedSubject);
345};
346
347export const assertGitStatus = async (
348 gitDir: string,

Callers 5

gitPush.test.tsFile · 0.90
oneFile.test.tsFile · 0.90
commitlint.test.tsFile · 0.90

Calls 1

getHeadCommitSubjectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…