Skip to content

Commit

Permalink
test(test): remove unused params (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Jan 5, 2025
1 parent 3c3c415 commit 5d1a40f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

Expand Down Expand Up @@ -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 })

Expand All @@ -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 })

Expand Down

0 comments on commit 5d1a40f

Please sign in to comment.