Skip to content

Commit 6126830

Browse files
richiemccolldanielleadams
authored andcommitted
doc: fix test runner examples
PR-URL: #46565 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent e0f4360 commit 6126830

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/test.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ before each subtest of the current suite.
921921

922922
```js
923923
describe('tests', async () => {
924-
beforeEach(() => t.diagnostic('about to run a test'));
924+
beforeEach(() => console.log('about to run a test'));
925925
it('is a subtest', () => {
926926
assert.ok('some relevant assertion here');
927927
});
@@ -950,7 +950,7 @@ after each subtest of the current test.
950950

951951
```js
952952
describe('tests', async () => {
953-
afterEach(() => t.diagnostic('about to run a test'));
953+
afterEach(() => console.log('finished running a test'));
954954
it('is a subtest', () => {
955955
assert.ok('some relevant assertion here');
956956
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy