import { expect } from 'chai' ; import { GitRepo } from '../../../src/lib/utils' ; export function expectCommits ( repo , commitMessages ) { expect ( repo . listCurrentBranchCommitMessages ( ) . slice ( 0 , commitMessages . split ( ',' ) . length ) . join ( ', ' ) ) . to . equal ( commitMessages ) ; }