Skip to content

Commit

Permalink
ensure run() captures all arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkoman committed Dec 11, 2020
1 parent cd5122a commit e9bfce5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/runner/__tests__/index.ts
Expand Up @@ -138,8 +138,7 @@ describe('run', (): void => {
})
)

// 'commit-msg' takes one parameter from git
const status = await index(['', '', 'commit-msg', 'git fake param'], {
const status = await index(['', '', 'commit-msg', 'git', 'fake', 'param'], {
cwd: dir,
})
expectSpawnSyncToHaveBeenCalledWith(dir, 'echo success', {
Expand Down

0 comments on commit e9bfce5

Please sign in to comment.