diff --git a/test/unit/commit.spec.ts b/test/unit/commit.spec.ts index c4b1ac59..4d2ecd8d 100644 --- a/test/unit/commit.spec.ts +++ b/test/unit/commit.spec.ts @@ -21,6 +21,12 @@ describe('commit', () => { }); describe('usage', () => { + it('empty commit', async () => { + git.commit([], {'--amend': null, '--no-edit': null}); + await closeWithSuccess(); + assertExecutedCommands('commit', '--amend', '--no-edit'); + }); + it('single message, no files, no options and callback', async () => { const task = git.commit('message', callback); await closeWithSuccess();