@@ -20,7 +20,7 @@ describe.only('commit-message-install', () => {
20
20
21
21
context ( 'gets last commit message' , ( ) => {
22
22
beforeEach ( ( ) => {
23
- sandbox . stub ( utils , 'callExeca' ) . withArgs ( getMessageGitCommand , { shell : true } ) . resolves ( {
23
+ sandbox . stub ( utils , 'callExeca' ) . withArgs ( getMessageGitCommand , [ ] , { shell : true } ) . resolves ( {
24
24
exitCode : 0 ,
25
25
stdout : 'message body' ,
26
26
stderr : ''
@@ -40,7 +40,7 @@ describe.only('commit-message-install', () => {
40
40
const sha = '3d243ea'
41
41
beforeEach ( ( ) => {
42
42
const cmd = getMessageGitCommand + ' ' + sha
43
- sandbox . stub ( utils , 'callExeca' ) . withArgs ( cmd , { shell : true } ) . resolves ( {
43
+ sandbox . stub ( utils , 'callExeca' ) . withArgs ( cmd , [ ] , { shell : true } ) . resolves ( {
44
44
exitCode : 0 ,
45
45
stdout : 'message body' ,
46
46
stderr : ''
@@ -71,7 +71,7 @@ describe.only('commit-message-install', () => {
71
71
}
72
72
\`\`\`
73
73
`
74
- sandbox . stub ( utils , 'callExeca' ) . withArgs ( getMessageGitCommand , { shell : true } ) . resolves ( {
74
+ sandbox . stub ( utils , 'callExeca' ) . withArgs ( getMessageGitCommand , [ ] , { shell : true } ) . resolves ( {
75
75
exitCode : 0 ,
76
76
stdout : message ,
77
77
stderr : ''
@@ -97,7 +97,7 @@ describe.only('commit-message-install', () => {
97
97
const json = toMarkdownJsonBlock ( info )
98
98
const message = `some text\n\n` + json
99
99
100
- sandbox . stub ( utils , 'callExeca' ) . withArgs ( getMessageGitCommand , { shell : true } ) . resolves ( {
100
+ sandbox . stub ( utils , 'callExeca' ) . withArgs ( getMessageGitCommand , [ ] , { shell : true } ) . resolves ( {
101
101
exitCode : 0 ,
102
102
stdout : message ,
103
103
stderr : ''
@@ -110,7 +110,7 @@ describe.only('commit-message-install', () => {
110
110
111
111
it ( 'returns undefined without valid block' , ( ) => {
112
112
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 ( {
114
114
exitCode : 0 ,
115
115
stdout : message ,
116
116
stderr : ''
@@ -126,11 +126,11 @@ describe.only('commit-message-install', () => {
126
126
const commitMessageInstall = require ( '../bin/commit-message-install' )
127
127
128
128
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 ( {
130
130
exitCode : 0 ,
131
131
stdout : 'nothing to do' ,
132
132
stderr : ''
133
- } ) . withArgs ( 'echo cool' , { shell : true , stdio : 'inherit' } ) . resolves ( {
133
+ } ) . withArgs ( 'echo cool' , [ ] , { shell : true , stdio : 'inherit' } ) . resolves ( {
134
134
exitCode : 0 ,
135
135
stdout : 'cool is working' ,
136
136
stderr : ''
0 commit comments