diff --git a/doc/api/test.md b/doc/api/test.md index d93d0723297bdc..e3eca690246969 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -912,7 +912,7 @@ before each subtest of the current suite. ```js describe('tests', async () => { - beforeEach(() => t.diagnostic('about to run a test')); + beforeEach(() => console.log('about to run a test')); it('is a subtest', () => { assert.ok('some relevant assertion here'); }); @@ -943,7 +943,7 @@ after each subtest of the current test. ```js describe('tests', async () => { - afterEach(() => t.diagnostic('about to run a test')); + afterEach(() => console.log('finished running a test')); it('is a subtest', () => { assert.ok('some relevant assertion here'); });