@@ -20,7 +20,7 @@ describe.only('commit-message-install', () => {
2020
2121 context ( 'gets last commit message' , ( ) => {
2222 beforeEach ( ( ) => {
23- sandbox . stub ( utils , 'callExeca' ) . withArgs ( getMessageGitCommand , { shell : true } ) . resolves ( {
23+ sandbox . stub ( utils , 'callExeca' ) . withArgs ( getMessageGitCommand , [ ] , { shell : true } ) . resolves ( {
2424 exitCode : 0 ,
2525 stdout : 'message body' ,
2626 stderr : ''
@@ -40,7 +40,7 @@ describe.only('commit-message-install', () => {
4040 const sha = '3d243ea'
4141 beforeEach ( ( ) => {
4242 const cmd = getMessageGitCommand + ' ' + sha
43- sandbox . stub ( utils , 'callExeca' ) . withArgs ( cmd , { shell : true } ) . resolves ( {
43+ sandbox . stub ( utils , 'callExeca' ) . withArgs ( cmd , [ ] , { shell : true } ) . resolves ( {
4444 exitCode : 0 ,
4545 stdout : 'message body' ,
4646 stderr : ''
@@ -71,7 +71,7 @@ describe.only('commit-message-install', () => {
7171 }
7272 \`\`\`
7373 `
74- sandbox . stub ( utils , 'callExeca' ) . withArgs ( getMessageGitCommand , { shell : true } ) . resolves ( {
74+ sandbox . stub ( utils , 'callExeca' ) . withArgs ( getMessageGitCommand , [ ] , { shell : true } ) . resolves ( {
7575 exitCode : 0 ,
7676 stdout : message ,
7777 stderr : ''
@@ -97,7 +97,7 @@ describe.only('commit-message-install', () => {
9797 const json = toMarkdownJsonBlock ( info )
9898 const message = `some text\n\n` + json
9999
100- sandbox . stub ( utils , 'callExeca' ) . withArgs ( getMessageGitCommand , { shell : true } ) . resolves ( {
100+ sandbox . stub ( utils , 'callExeca' ) . withArgs ( getMessageGitCommand , [ ] , { shell : true } ) . resolves ( {
101101 exitCode : 0 ,
102102 stdout : message ,
103103 stderr : ''
@@ -110,7 +110,7 @@ describe.only('commit-message-install', () => {
110110
111111 it ( 'returns undefined without valid block' , ( ) => {
112112 const message = 'this message has no json code'
113- sandbox . stub ( utils , 'callExeca' ) . withArgs ( getMessageGitCommand , { shell : true } ) . resolves ( {
113+ sandbox . stub ( utils , 'callExeca' ) . withArgs ( getMessageGitCommand , [ ] , { shell : true } ) . resolves ( {
114114 exitCode : 0 ,
115115 stdout : message ,
116116 stderr : ''
@@ -126,11 +126,11 @@ describe.only('commit-message-install', () => {
126126 const commitMessageInstall = require ( '../bin/commit-message-install' )
127127
128128 beforeEach ( ( ) => {
129- sandbox . stub ( utils , 'callExeca' ) . withArgs ( 'git show -s --pretty=%b' , { shell : true } ) . resolves ( {
129+ sandbox . stub ( utils , 'callExeca' ) . withArgs ( 'git show -s --pretty=%b' , [ ] , { shell : true } ) . resolves ( {
130130 exitCode : 0 ,
131131 stdout : 'nothing to do' ,
132132 stderr : ''
133- } ) . withArgs ( 'echo cool' , { shell : true , stdio : 'inherit' } ) . resolves ( {
133+ } ) . withArgs ( 'echo cool' , [ ] , { shell : true , stdio : 'inherit' } ) . resolves ( {
134134 exitCode : 0 ,
135135 stdout : 'cool is working' ,
136136 stderr : ''
0 commit comments