From 5d1a40f78917dc50be574fcff436be2e12af61c6 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 5 Jan 2025 10:50:28 +0000 Subject: [PATCH] test(test): remove unused params (#87) --- test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test.js b/test.js index 67ec678..5e9fdd5 100644 --- a/test.js +++ b/test.js @@ -194,7 +194,7 @@ test('pre-commit', async (t) => { }) await t.test('allows for a custom error code', (t) => { - const hook = new Hook(function (code, lines) { + const hook = new Hook(function (code) { t.assert.strictEqual(code, 0, 'exit code should be 0') }, { ignorestatus: true }) @@ -232,7 +232,7 @@ test('pre-commit', async (t) => { await t.test('output lines to stderr if error code 1', (t) => { const err = console.error - const hook = new Hook(function (code, lines) { + const hook = new Hook(function () { console.error = err }, { ignorestatus: true }) @@ -246,7 +246,7 @@ test('pre-commit', async (t) => { await t.test('output lines to stderr if error code 0', (t) => { const log = console.log - const hook = new Hook(function (code, lines) { + const hook = new Hook(function () { console.log = log }, { ignorestatus: true })