From 087bf7fd0ee5a378c673ada71dfcc35876164c2b Mon Sep 17 00:00:00 2001 From: richiemccoll Date: Wed, 8 Feb 2023 13:28:53 +0200 Subject: [PATCH] doc: fix test runner examples --- doc/api/test.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); });