Skip to content

Commit

Permalink
Use testDone instead of testCompleted
Browse files Browse the repository at this point in the history
  • Loading branch information
hanquliu committed Jan 3, 2025
1 parent b4abfd9 commit 3f043a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/catch-override-exception.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const { test } = require('node:test')
const boot = require('..')

test('catch exceptions in parent.override', (t, testCompleted) => {
test('catch exceptions in parent.override', (t, testDone) => {
t.plan(1)

const server = {}
Expand All @@ -21,6 +21,6 @@ test('catch exceptions in parent.override', (t, testCompleted) => {

app.ready(function (err) {
t.assert.strictEqual(err.message, 'catch it')
testCompleted()
testDone()
})
})

0 comments on commit 3f043a9

Please sign in to comment.