Skip to content

Commit 5d1a40f

Browse files
authored
test(test): remove unused params (#87)
1 parent 3c3c415 commit 5d1a40f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)