diff --git a/doc/api/test.md b/doc/api/test.md index 76af255285b81b..be5b9baeeb9fbe 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -916,7 +916,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'); }); @@ -947,7 +947,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'); });