File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ test('pre-commit', async (t) => {
194194 } )
195195
196196 await t . test ( 'allows for a custom error code' , ( t ) => {
197- const hook = new Hook ( function ( code , lines ) {
197+ const hook = new Hook ( function ( code ) {
198198 t . assert . strictEqual ( code , 0 , 'exit code should be 0' )
199199 } , { ignorestatus : true } )
200200
@@ -232,7 +232,7 @@ test('pre-commit', async (t) => {
232232
233233 await t . test ( 'output lines to stderr if error code 1' , ( t ) => {
234234 const err = console . error
235- const hook = new Hook ( function ( code , lines ) {
235+ const hook = new Hook ( function ( ) {
236236 console . error = err
237237 } , { ignorestatus : true } )
238238
@@ -246,7 +246,7 @@ test('pre-commit', async (t) => {
246246
247247 await t . test ( 'output lines to stderr if error code 0' , ( t ) => {
248248 const log = console . log
249- const hook = new Hook ( function ( code , lines ) {
249+ const hook = new Hook ( function ( ) {
250250 console . log = log
251251 } , { ignorestatus : true } )
252252
You can’t perform that action at this time.
0 commit comments