diff --git a/doc/api/test.md b/doc/api/test.md index ecfb5c7e998c98..9b8b0940f265ca 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -921,7 +921,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'); }); @@ -950,7 +950,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'); });