Skip to content

Commit c771d66

Browse files
richiemccollMylesBorins
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 ff95eb7 commit c771d66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/test.md

+2-2
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)