Skip to content

Commit c771d66

Browse files
richiemccollMylesBorins
authored andcommitted
doc: fix test runner examples
PR-URL: #46565 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
1 parent ff95eb7 commit c771d66

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
@@ -912,7 +912,7 @@ before each subtest of the current suite.
912912

913913
```js
914914
describe('tests', async () => {
915-
beforeEach(() => t.diagnostic('about to run a test'));
915+
beforeEach(() => console.log('about to run a test'));
916916
it('is a subtest', () => {
917917
assert.ok('some relevant assertion here');
918918
});
@@ -943,7 +943,7 @@ after each subtest of the current test.
943943

944944
```js
945945
describe('tests', async () => {
946-
afterEach(() => t.diagnostic('about to run a test'));
946+
afterEach(() => console.log('finished running a test'));
947947
it('is a subtest', () => {
948948
assert.ok('some relevant assertion here');
949949
});

0 commit comments

Comments
 (0)